Monitoring incoming UDP packets

G

Geof

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
 
R

robert0

Geof said:
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.
 
G

Geof

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

robert0

Geof said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top