Click to See Complete Forum and Search --> : Network Connection


SonOfMyMom
March 6th, 2010, 08:11 PM
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

Machta
March 7th, 2010, 02:19 AM
Try this: http://msdn.microsoft.com/en-us/library/aa394220(VS.85).aspx
or try to find some other class with the MSDN lib

SonOfMyMom
March 7th, 2010, 05:31 PM
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