473,657 Members | 2,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Monitoring incoming UDP packets

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).

I have no idea how I can do that.

Can you help me ?

Regards.

Geoffrey
Nov 16 '05 #1
3 3366

"Geof" <gd****@hotmail .com> ha scritto nel messaggio
news:98******** *************** **@posting.goog le.com...
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).

I have no idea how I can do that.

Can you help me ?

Regards.

Geoffrey


Use socket class , bound to the port X.
Parse tha data and do the same the other application does.
Bye.
Nov 16 '05 #2
> Use socket class , bound to the port X.
Parse tha data and do the same the other application does.
Bye.


Hello,

I can't bind to the port because it is already in use by the other app.

Regards.
Nov 16 '05 #3

"Geof" <gd****@hotmail .com> ha scritto nel messaggio
news:98******** *************** ***@posting.goo gle.com...
Use socket class , bound to the port X.
Parse tha data and do the same the other application does.
Bye.


Hello,

I can't bind to the port because it is already in use by the other app.

Regards.

If you get error
use reuseaddress , a property of sockets.
I had the same problem.
Bye
Nov 16 '05 #4

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

Similar topics

1
2326
by: Serdar C. | last post by:
hi there i just write a program works like a telnet client (with AsyncCallback).... everything works fine but i have a problem with packets received... i set the received packet size to 32768 ( byte incoming = new byte ) and then i tried to connect to a pop3 server... i logged in with user and pass cmomands and then i types "list" cmomand which lists all the mails in my mailbox with their filesize.. my problem just starts here that i...
1
4891
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
2409
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
5
2394
by: Björn Olsson | last post by:
Hello All. If I where to capture network traffic, dropping packets and modifying packets. I.e write firewall functionality. Which API or SDK would be the correct choice? I would prefer to do it in .net. Do I have to use the DDK package or is there any other way? Im quite lost here. --
12
5739
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 server to the client. So what I need to do is open up a "hole" in the NAT and let the server know the...
3
1716
by: stuart79 | last post by:
I have created a form in excel using VB, the form is to monitor workload and how long taks take to complete. My department currently works from 6 inboxes and monitoring work that is coming in is a bit of a nightmare, what i would like is if an e mail comes into any one of the inboxes i then have a counter within excel sheet counting each mail that is coming into the inbox i do not want the counter deducting each time an e mail is looked at...
4
2086
by: selvialagar | last post by:
I am doing a project in embedded system (in vc++.net 2003)...I need to allocate a pool of free space for the incoming packets.Once i received the packet in the pool, an intimation must be given to me that the requested packet has come.How to do this? Meanwhile, an packet comes for another process which runs in the backend,an intimation must be given for that process.I know, it is possible by multithreading. I need some ideas, how to implement...
4
3191
drhowarddrfine
by: drhowarddrfine | last post by:
I have a new customer with a cash register that runs on Windows XP. This register software runs full screen and I'm told you can't run anything else while this is running, but I don't know what they mean by that exactly. I doubt they can block any background programs that are started ahead of time. Anyway, this register is always connected to the internet and I'd like to write/use something to monitor the 'net on some port for incoming data...
0
1206
by: Rajeshekambaram | last post by:
How to read the incoming packets and block using c sharp
0
8315
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8829
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8734
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8608
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7341
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6172
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
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.