-
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
-
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
-
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