Hi everyone,
I've got a question regarding creation of a TCP Socket Server in NS2.  
 From real-life implementations I understand that a server sockets 
listens for incoming client connection requests and returns a handle to 
a new socket. i.e.

TCPSocket * s = serverSocket.accept();

My question is, how does the client know the address of the port to 
which the new socket is bound in order to send data to the server  (I am 
assuming that the server socket and the client connection socket cannot 
share the same port)?   How would I go about implementation a TCPServer 
Socket in ns2?  Thank you in advance.

Regards,
Sampath

Reply via email to