UDP sockets

  • Thread starter Thread starter PH
  • Start date Start date
P

PH

Hi guys;



I got to make an application that listens for incoming UDP connections
in 2 different ports at the same time.

Also this application must only let pass thru connection attempts coming
from certain IP addresses, and discard the rest.



Any code, suggestion or help will be much appreciated.



Thanks.
 
PH said:
Hi guys;

I got to make an application that listens for incoming UDP connections
in 2 different ports at the same time.

Also this application must only let pass thru connection attempts coming
from certain IP addresses, and discard the rest.

Any code, suggestion or help will be much appreciated.

UDP is connectionless. You probably only want to accept packets from
certain IP addresses. Lookup the MSDN docs for the Socket class. The
methods Bind, Listen and ReceiveFrom are what you need.

hth,
Max
 
Back
Top