Get socket information through UE4?

Hi Michael , can you provide some example code or links to show how UE4 communicates with com ports please? I have c++ codes that can read com ports, however there are a lot of stuff related to windows api(a lot of stuctures and that kind of stuff), I can’t translated it to UE4 C++. I’ve tried to compile it to dll, and it brings more trouble. Thanks in advance.