|
well, to me that sounds all a bit complicated. why not accept new connections on one specified port,then if a client wants another connection, it just asks at that same port again. if a connection is accepted it gets it own socket. there is no need to chose a port for every connection the server gets in. if you have to choose ports within the client, just do it randomly above 1024 and retry if one wont open.
Last edited by sonicx; 12-08-2007 at 05:59 AM..
Reason: typos
|