Introduction - If you have any usage issues, please Google them yourself
CSocket inherited from CAsyncSocket. Windows Socket API is a high-level abstraction. It is usually two and CSocketFile and CArchive class of mixed use. The latter two categories is mainly responsible for sending and receiving data. Csocket provides a way of blocking the access way, blocking the way meaning is to send out a message to wait until after the other return information before sending the next packet communications. To use the CSocket object should first call the constructor and then call the Create function to create a Socket handle. Create function to create a default flow Socket, if you are not using Carchive class, you can also create a Datagram Socket. On the server side call Accept, the client calls the Connect, and then to create a CsocketFile associated Csocket. The next step is to create a Carchive object associated CsocketFile, used to transmit data and receive data.