Click to See Complete Forum and Search --> : Low level network application


andreimatei
April 29th, 2003, 02:30 AM
Hi,
I was wondering if it is possible to program a low level network application in .net. I mean I want to choose the network interface that handles the packets sent from my app, I want to get every IP packet that passes thru my computer, and so on...
Can anyone give me any pointers?

Thanks a lot,

Andrei Matei

andreimatei@home.ro

Holiday
April 29th, 2003, 01:59 PM
Try using a TcpListener for all ports...

i.e.
using System.Net.Sockets;

TcpListener theListener = new TcpListener(port);
theListerner.Start();

Socket theSocket = theListener.AcceptSocket();
if(theSocket.Connected)
..do sth

Probably, there is an easier way, but therefore a more detailed task is requested. :D :D :D