CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Posts
    16

    Network Connection

    Hi,
    I am writing a simple Intrusion Detection System..I need to know these properties of a connection

    Source IP address
    Destination IP address
    Source Port Number
    Destination Port
    Number
    Duration
    State 1~20 11 The connection isterminated by the originator, for internal use
    Protocol
    1~9 2 The protocol for this connection is TCP
    Number of Bytes Sent
    by Originator
    Number of Bytes sent
    by Responder

    can some one point me to a class in .NET for getting this properties.
    thanks

  2. #2
    Join Date
    Mar 2010
    Posts
    2

    Re: Network Connection

    Try this: http://msdn.microsoft.com/en-us/libr...20(VS.85).aspx
    or try to find some other class with the MSDN lib

  3. #3
    Join Date
    Dec 2007
    Posts
    16

    Re: Network Connection

    Hi,
    I tried NetworkTCPInformation but it just gives source IP and destination Port but I neeed for example duration of connection and the amount of byte sent received

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