o**f 发帖数: 76 | 1 Hi All,
I am using a TCP server to be a non-blocking
server for n TCP clients (with Socket.Select()).
My problem is the number of n is limited to be < 65
when I bring up those clients one at a time with
10 seconds interval time between two adjacent
clients. Otherwise, the Socket.Select
will throw an "Index was outside the bounds of the
array" exception.
I tried SetSocketOption with MaxConnections
and get an unhandled exception. I also
tried to use different value for socket
Listen(int). It do |
|