Multiple UDP Binds to the same ip:port address?

S

subaruwrx88011

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
 
M

mlimber

subaruwrx88011 said:
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-lite/how-to-post.html#faq-5.9

Cheers! --M
 
S

subaruwrx88011

Sorry.

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

Leon
 
M

mlimber

subaruwrx88011 said:
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.
 
A

Alan Johnson

subaruwrx88011 said:
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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top