Article Title: differences between writing socket programs in Windows and Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
[Windows ]]
[Windows: Differences in header files]
# Include
# Include
[Windows: Differences in Initialization]
WSADATA wsaData;
WSAStartup (0x202, & wsaData );
[Windows: Socket Declaration]
SOCKET Type
[Windows: Socket disabled]
Closesocket ()
[Windows: Socket operation error return value]
SOCKET_ERROR
[Windows: set socket non-blocking]
Ioctlsocket (server_socket, FIONBIO, & ul );
Windows: WSA macro]
WSA-related operations
[Windows: Select () function]
The first parameter of the Select () function is invalid. You can enter 0.
[Windows: Compile the connection]
Ws2_32.lib
[Windows: Error capture]
WSAGetLastError ()
[Windows: Exception Handling]
No exception handling for send (). The last parameter is invalid. Write 0.
[1] [2] Next page