Output: New client request received : SocketĬreating a new handler for this client. The following points will help understand ClientHandler implementation : This will hold the name of the client that is connected to the server. This time, along with the socket and streams, we introduce a name variable. ClientHandler class : Similar to previous article, we create a helper class for handling various requests. As this vector holds all the streams, handler class can use it to successfully deliver messages to specific clients.Ģ. The helper class uses this vector to find the name of recipient to which message is to be delivered. The vector stores the thread object corresponding to the current request.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |