|
-
April 29th, 2003, 02:30 AM
#1
Low level network application
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
[email protected]
-
April 29th, 2003, 01:59 PM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|