Another sockets question

T

Terry Olsen

When a listener connects to a remote client, does it negotiate another port
to free up the listening port, or does it stay on the listening port?
 
T

Tom Shelton

When a listener connects to a remote client, does it negotiate another port
to free up the listening port, or does it stay on the listening port?

I assmume you mean when a client initiates a connection to the
listner... And yes, the request is handled on a different port so that
the listener is free to go back to, well, listening :)
 
C

CHRISM

When a listener connects to a remote client, does it negotiate another port
to free up the listening port, or does it stay on the listening port?

Yes, when the listening socket Accept()'s the connection, a new socket
is created, using a free port, for the connection.

// CHRIS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top