473,395 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Receive UDP packets from multiple devices

Hi all,

I'm new to developing applications using networking protocols and need to figure out how to send/receive data between a server and 8 different devices. I don't have much code as I am still in the planning stages, but I'm confused about the best way to send / receive data.

On program startup I plan on sending a broadcast ping and then listening for the 8 device's responses. What is the best way to receive the data? I've done some digging around and it looks like I will need a thread that constantly calls a udp receive. Is that correct?

Also, after the program has started up I will have to poll the devices every so often for data. As far as I can tell I will have to send 8 different send requests for each poll and then use the receive thread to get the data back from the devices. This seems kind of inefficient but I think it will work. Can anyone offer any insight?

Thanks for any help,

Chris
Sep 10 '09 #1
0 1761

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Morten Overgaard | last post by:
Hi I'm listening on the SysLog port (514) through UDP. The problem is that I am not receiving anything nut I know that i get messages on the port. When I use KIWI to listen on the same port via...
1
by: | last post by:
I cannot handle this.I can receive incoming but I cannot detect outgoing packets. I am using Windows XP no SP present. Thanks a lot for answers.
1
by: Naveen Mukkelli | last post by:
Hi, I am working with a client/server application that sends and receives structures of size 2000 bytes through TCP/IP Sockets. As MSS(Maximum Segment Size) is 1500 bytes, TCP/IP protocol on...
0
by: Nuno Magalhaes | last post by:
I've build an application that sends UDP packets to a multicast address 224.1.2.3 but in my other application I can't receive that packets using the code below. It blocks on receive. Any...
6
by: Orgun | last post by:
Hi, I sent this message to the moderated c++ group too but it is waiting for moderator approval and I wanted to send here too. I am new to Design Patterns. I want to write a simple...
5
by: Mahesh | last post by:
Hi am trying to receives UDP pockets , but it is blocking in the "Socket.Receive" can any one help me to find the problem...? byte buffer = new byte; Socket socket = new...
0
by: Johan | last post by:
Suppose: There are two devices on my network that both broadcast UDP datagrams (and they both use the same portnumber 1234). I want to create two executables that use UdpClient internally. Each...
3
by: Joe Blauth | last post by:
Hi all, I am currently working on a small application that sends messages from a client to a server and receives messages in return. Basically the functionality is made with sockets which is...
0
by: =?Utf-8?B?VG9tbXkgTG9uZw==?= | last post by:
Ok, I'm not all that great with VB.Net, I admit that early on. Used to get on well with VB6 but we can't all live in the past I'm told. :) Basically, the following is a sample procedure, which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.