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

Multiple UDP Binds to the same ip:port address?

P: n/a
Thanks for reading.

I am trying to figure out how to do multiple UDP binds to the same
ip:port address on linux. The reason for this is out software takes out
the initial bind to receive messages but we also want a test tool that
will receive the same messages and print them out in english so we can
verify the messages being sent. I can't figure out how to make this
work. I am very new to c++ and very new to UDP sockets. Is there a UDP
function call to allow this?

Any help will be greatly appreciated
Thanks
Leon

May 16 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
subaruwrx88011 wrote:
Thanks for reading.

I am trying to figure out how to do multiple UDP binds to the same
ip:port address on linux. The reason for this is out software takes out
the initial bind to receive messages but we also want a test tool that
will receive the same messages and print them out in english so we can
verify the messages being sent. I can't figure out how to make this
work. I am very new to c++ and very new to UDP sockets. Is there a UDP
function call to allow this?

Any help will be greatly appreciated
Thanks
Leon


You're in the wrong newsgroup. This group discusses the C++ language
proper, whereas you want to know about network programming. For what it
on-topic here and for a list of potential groups to post in, please see
this FAQ:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

May 16 '06 #2

P: n/a
Sorry.

I thought since I was programming in c++ someone here might be able to
help.

Leon

May 16 '06 #3

P: n/a
subaruwrx88011 wrote:
Sorry.

I thought since I was programming in c++ someone here might be able to
help.


They might be able to, but they shouldn't. Different groups exist to
support different topics and specializations, and while there are some
gray areas when it comes to choosing which group is most apropos, it
seems clear that your question falls outside the (fuzzy) boundaries of
this group, despite the fact that you are using C++.

To be on-topic for this group, according to the previously mentioned
FAQ, "your question must be answerable by looking into the C++ language
definition as determined by the ISO/ANSI C++ Standard document, and by
planned extensions and adjustments." Clearly sockets do not qualify
since the C++ Standard knows nothing of them.

Cheers! --M

PS, Please quote the message you are replying to. It makes it easier
for everyone to follow the conversation.

May 16 '06 #4

P: n/a
subaruwrx88011 wrote:
Thanks for reading.

I am trying to figure out how to do multiple UDP binds to the same
ip:port address on linux. The reason for this is out software takes out
the initial bind to receive messages but we also want a test tool that
will receive the same messages and print them out in english so we can
verify the messages being sent. I can't figure out how to make this
work. I am very new to c++ and very new to UDP sockets. Is there a UDP
function call to allow this?


See my reply to your posting in comp.os.linux.networking. Includes a
full example in C. Followup set to c.o.l.n.

--
Alan Johnson
May 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.