Multiple sockets with same port

Joined
Oct 25, 2005
Messages
1
Reaction score
0
Hi,
Can I bind multiple sockets with the same port, for different threads?
I have a client which has been assigned a port. I will have multiple threads for this client, each initiating connection with different hosts. Hence I need multiple sockets to bind with the same port.

Can I simply use setreuseaddress() or is there any other method???


Thank you.
 

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

Back
Top