![]() ![]() If a connection request occurs, the application calls the accept, AcceptEx, or WSAAccept function and passes the work to another thread to handle the request. One programming technique is to create a continuous loop that checks for connection requests using the listen function (see Listening on a Socket). ![]() There are several different programming techniques using Winsock that can be used to listen for multiple client connections. For high-performance servers, multiple threads are commonly used to handle the multiple client connections. Normally a server application would be designed to listen for connections from multiple clients. Once the socket is listening for a connection, the program must handle connection requests on that socket.Ĭreate a temporary SOCKET object called ClientSocket for accepting connections from clients. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |