Networking Forums

Networking Forums > Computer Networking > Linux Networking > UDP sockets

Reply
 
 
Sven Jacobs
Guest
Posts: n/a

 
      05-10-2004, 06:06 AM
Dear newsgroup,

first of all let me tell you that I am no network nor an C++ expert. I have
several years of programming experience but this is the first time that I
have to deal with UDP sockets (and sockets generally) at a relatively low
level layer. If this is the wrong place for my question please be
considerate and point me to the right location, thanks!

The project I am developing is aimed for Linux deployment and is being
developed under Linux. I am using the GNU CommonC++ library, especially the
UDPSocket and UDPBroadcast class, for my purposes. I've successfully
managed to build a NetBIOS name query package and sent it to the broadcast
address of my network via the UDPBroadcast class. Ethereal shows me that
the packet is transmitted and an answer is being replied. I am unable to
receive the answer though, because it's directly sent to the IP of my
computer. I am listening on IP 0.0.0.0 (which, as far as I understand,
means "listen on all network devices") via the UDPSocket class. I do
receive all UDP broadcast messages, but I don't receive the packets sent to
192.168.0.3 (which is the IP of my computer, the originator of the name
query). The UDPReceive class, which may be an alternative way of receiving
the packets, unfortunately needs the IP address of the other computer (the
one which is sending the name query reply) but I am not aware of this IP at
that moment. The purpose of a NetBIOS name query is to resolve a NetBIOS
name to a IP address.

So my question is: How do I receive an UDP packet which is sent to my
computer without needing to know the IP of the sender?

--
Thanks for any help,
Sincerely

Sven Jacobs
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Max TCP sockets CJS Windows Networking 1 02-28-2007 06:20 PM
RAW TCP/IP sockets George Valkov Windows Networking 1 09-22-2006 02:49 AM
sockets Sam Linux Networking 2 07-07-2004 08:54 AM
sockets =?ISO-8859-1?Q?Andreas_R=F8sdal?= Linux Networking 5 02-03-2004 02:48 PM
raw sockets Linux Networking 1 12-22-2003 02:28 PM



1 2 3 4 5 6 7 8 9 10 11