tags:

views:

79

answers:

2

is there a way to limit the number of clients a tcpListener can accept?

+3  A: 

Count them and dont accept() if you have too many?

tm1rbrt
You might wanna accept and then send a packet explaining that the server is full then disconnect, instead.
tm1rbrt
+1  A: 
TGadfly