|
From: Srubys on 2 Jul 2008 14:51 hiya 1. a) I assume that if ServerSocket object is closed, local port and IP can be reused immediately ( assuming there is no active or closing connection to the same port) ? b) And even if there is active connection to the same port, if new ServerSocket object listens on same port, but different IP, then local port can be reused immediately ( even without setting SO_REUSEADDR option ) ? c) If on a client side a connection is in timeout state, can you immediately reuse this local port if new client socket listens on different local IP ( even without setting the SO_REUSEADDR option )? d) I gather that SO_REUSEADDR option enables new socket to bind to same local port while there is still closing connection to that port, but this new socket wont be allowed to create connection with the same socket pair? 2. If one server instance listens on port 2000 and on all local interfaces, then no other server instance can listen on same port. But if that server instance listens on just one local interface ( and on port 2000 ), then there can be some other server instance listening on same port and different local IP ? thank you
|
Pages: 1 Prev: If shutdownOutput() doesn’t cause other end to start TCP close Next: Tile Map Editor |