By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,156 Members | 1,004 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,156 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.

Jun 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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,

"DaTurk" <mm******@hotmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
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.

Jun 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.