Protocol: TCP
I have a server with a SocketServer that accepts clients and puts the socket (returned by ss.accept()
) in an array.
I have 1 thread that needs to be notified when a socket is ready to be read (client sent data). This thread will dispatch the request to other threads for processing so what this initial thread does is really simple and fast.
Is it possible?
I really want to avoid 1 thread = 1 client and have 1 thread deal with N clients.