473,569 Members | 2,688 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 4121
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*********@ho tmail.comwrote in message
news:11******** **************@ i3g2000cwc.goog legroups.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*********@ho tmail.comwrote in message
news:11******** **************@ i3g2000cwc.goog legroups.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
24018
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 provided do not support raw sockets. The only solution that I found was a "simulation" of a ping program doing a UDP request to a server on port 7.
4
7580
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 EndReceive calls... these calls seem to be sometimes coming out of order. For example, the following is from my log file: Connection at 5/1/2004...
3
3365
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 each time the third party app receives an UDP packet (on port X).
3
4560
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 default behaviour of TCPIP? I am attempting to send 1000 TCPIP packets to a remote sever with only a sequence number (and soon a variable length...
1
2406
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 port trhu UDP
12
5735
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 from c.l.py than anywhere else :) I have a server with a static "public" IP and a client behind a NAT. I would like to send UDP packets from the...
6
4629
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, SocketType.Raw, ProtocolType.Tcp); System.Net.Sockets.Socket remSocket = new System.Net.Sockets.Socket (AddressFamily.InterNetwork, SocketType.Raw,...
2
3046
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 (http://msdn.microsoft.com/en-us/library/ms740148(VS.85).aspx) subsequent calls of sendto function should result in returning WSAECONNRESET error code caused by returning ICMP...
4
3509
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) self.socket.bind(self.server_address) class LogsDumpHandler(SocketServer.DatagramRequestHandler): def handle(self):
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7679
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6287
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5223
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.