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