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.
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.