473,508 Members | 2,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading packets from UDP port

Hi there

I am looking for some guidance.

I am new to C++ and whilst I am reading up about the language, my
actual goal is to create a program that reads a UDP packet sent by a
data logger and displays the reults real-time on screen.

The UDP packet is sent every 200ms. I know the port. I have Windows
Vicual C++ Express Edition running under XP.

Can anyone point me in the direction of any source code that can do any
of this? I have looked at teh source code for Wireshark, but cannot
identify which bit of the code is reading the packets.

TIA

PP

Oct 15 '06 #1
3 4112
Hi,

Look up
socketopen read write select
http://msdn.microsoft.com/library/de..._reference.asp


Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Pashlipops" <ni*********@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi there

I am looking for some guidance.

I am new to C++ and whilst I am reading up about the language, my
actual goal is to create a program that reads a UDP packet sent by a
data logger and displays the reults real-time on screen.

The UDP packet is sent every 200ms. I know the port. I have Windows
Vicual C++ Express Edition running under XP.

Can anyone point me in the direction of any source code that can do any
of this? I have looked at teh source code for Wireshark, but cannot
identify which bit of the code is reading the packets.

TIA

PP

Oct 15 '06 #2
Thanks Moonlit!

Moonlit wrote:
Hi,

Look up
socketopen read write select
http://msdn.microsoft.com/library/de..._reference.asp


Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Pashlipops" <ni*********@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi there

I am looking for some guidance.

I am new to C++ and whilst I am reading up about the language, my
actual goal is to create a program that reads a UDP packet sent by a
data logger and displays the reults real-time on screen.

The UDP packet is sent every 200ms. I know the port. I have Windows
Vicual C++ Express Edition running under XP.

Can anyone point me in the direction of any source code that can do any
of this? I have looked at teh source code for Wireshark, but cannot
identify which bit of the code is reading the packets.

TIA

PP
Oct 15 '06 #3

Pashlipops wrote:
Hi there

I am looking for some guidance.

I am new to C++ and whilst I am reading up about the language, my
actual goal is to create a program that reads a UDP packet sent by a
data logger and displays the reults real-time on screen.

The UDP packet is sent every 200ms. I know the port. I have Windows
Vicual C++ Express Edition running under XP.

Can anyone point me in the direction of any source code that can do any
of this? I have looked at teh source code for Wireshark, but cannot
identify which bit of the code is reading the packets.

TIA

PP
Check out: http://asio.sourceforge.net/.

Oct 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
24008
by: Bob Rivers | last post by:
Hi, I was doing a research looking for Java solutions that are able to do "ping". I found old messages (and not so old ones), telling that Java was not able to do that, because the API...
4
7576
by: Brian Rice | last post by:
I have a socket application that is sending and receiving packets asynchronously. It works great except, when I receive packets that are larger than my receive buffer which then generate several...
3
3359
by: Geof | last post by:
Hello, I need to write an application to monitor incoming UDP packets on a specific port. This UDP port is already in use by a third party application. The goal is : to execute some code...
3
4556
by: Hiroyuki Tanaka | last post by:
Dear Readers, I am trying to learn C# network programming and I have discovered that Windows TCPIP often joins small packets and send them as one to the remote server. This appears to be a...
1
2398
by: Marcelo | last post by:
_____ From: Marcelo Posted At: Friday, September 30, 2005 1:40 PM Posted To: microsoft.public.dotnet.languages.vb Conversation: Subject: Client and Server - Listen por packets in a specific...
12
5726
by: Janto Dreijer | last post by:
This is probably more of a networking question than a Python one, but it would be nice to know if someone has done this with Python's socket module. And besides one usually gets more information...
6
4624
by: White Spirit | last post by:
I have the following code to send a packet to a remote socket and receive a response in return: System.Net.Sockets.Socket locSocket = new System.Net.Sockets.Socket (AddressFamily.InterNetwork,...
2
3042
by: =?Utf-8?B?R3JlZ0lJ?= | last post by:
Hi All, I have some problems with sending UDP packets using Winsock. I tried to send some to a closed port, and according to the documentation on Microsoft MSDN site...
4
3505
by: id.engg | last post by:
logFileName = 'log.txt' logfile = open(logFileName, "a") class MyUDPServer(SocketServer.UDPServer): def server_bind(self): self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 8388608)...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7039
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
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.