Home > OS >  Network programming under the Windows
Network programming under the Windows

Time:03-05

Usually is under Windows environment with source insight to write code, finally compiled under the Linux environment, then will encounter this kind of problem, is to call the Linux kernel function, because there is no corresponding source file on Windows, so there is no automatic when writing the code completion features, for example:
I want to use struct sockaddr_in this structure, he is in & lt; Netinet/in. H> This header file, because there is no source file is added to the project, so I call won't appear auto-complete, as follows:
 
# include & lt; Netinet/in. H>
Struct sockaddr_in mysock;
Mysock.//the general structure in the input statement. Or - & gt; There will be a structure member


And then I got off the Linux kernel source code, but with don't know is which socket. H the
  • Related