Is it possible to Bind Two sockets to two endpoints with the same IP/PORT

  • Thread starter Thread starter DaTurk
  • Start date Start date
D

DaTurk

I have this MultiCast application I'm working on, and for some reason
it won't let me bind more then one socket onto different emdpoints
using the same ip/port.

I'm new to network programming so I don't really understand why this
would be a problem.
 
I'd paste some code, but sounds like you are not spawning a new asychronous
thread on accepting a socket which would explain why once it connects it
doesn't connect any others.

In short you need to on the server do this:

1) start listening on a port
2)OnConnect call back method needs to spawn a thread handling the client
connection socket
3) meanwhile listen continues to accept incoming connections

hope that helps. I assume this is the problem, without code i can't be sure,
 

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