Introduction
Setup and Initialization
Connecting
Sending/Receiving Data
Closing and Cleanup
Definitions
Closing a Connection and Cleaning Up

When you are done using the open connection you have created, all you need to do is call the closesocket function. When you are completely done with all socket uses, you need to call the WSACleanup function. The following code demonstrates the two functions.


You are now cleaned up and ready to close your program, or continue on with whatever else your program does that does not involve Winsock.

Previous Page          Home Page