Using the Winsock API
The Winsock API is divided into 2 primary APIs: BSD and Winsock Extensions. The BSD group is Microsoft's version of the Berkeley Standard API. The Winsock extensions are additional APIs developed by Microsoft to further enhance the functionality of the protocol stack, particularly around asynchronous notification of network events. Winsock extensions are easy to identify by their WSA prefix.
A list of Winsock functions supported by the TCP/IP Stack is included in the Winsock API Reference.
Note: In any real-time application, initialization and cleanup procedures are necessary but assumed to be non-deterministic and should never fall within critical real-time loops. The same is true for WSAStartup and WSACleanup which are non-deterministic but must be used for proper initialization and cleanup.
Topics: