CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2001
    Location
    Bucharest, Romania
    Posts
    24

    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]

  2. #2
    Join Date
    Aug 2002
    Location
    Germany, Berlin
    Posts
    60
    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
  •  





Click Here to Expand Forum to Full Width

Featured