Sylloge
A C# helper library
Public Types | Public Member Functions | Properties | Events
Sylloge.Net.IpHeader Class Reference

A class that facilitates the information contained in an IP packet header. More...

List of all members.

Public Types

enum  IpProtocol { TCP = 6, UDP = 17, UNKNOWN = -1 }

Public Member Functions

delegate void IpErrorEventHandler (string message)
 IpHeader (byte[] data, int length)
 Create an instance of the IP header.

Properties

string Version [get]
 Gets the IP version from the packet.
string HeaderLength [get]
 Gets the IP header length.
ushort MessageLength [get]
 Gets the IP message length.
string DifferentiatedServices [get]
 Gets the differentiated services in hexadecimal format.
string Flags [get]
 Gets the IP packet flags.
string FragmentationOffset [get]
 Gets the fragmentation offset from the IP packet.
string TTL [get]
 Gets the TTL of the packet.
IpProtocol ProtocolType [get]
 Gets the IP protocol used.
string Checksum [get]
 Gets the checksum of the packet.
System.Net.IPAddress SourceIpAddress [get]
 Gets the source IP address from the packet.
System.Net.IPAddress DestinationIpAddress [get]
 Gets the destination IP address from the packet.
string TotalLength [get]
 Gets the total length of the IP packet.
string Identification [get]
 Gets the ID information from the IP packet.
byte[] Data [get]
 Gets the data in the IP packet.

Events

IpErrorEventHandler IpError
 Occurs on an error in the IP packet.

Detailed Description

A class that facilitates the information contained in an IP packet header.

Definition at line 106 of file Net.cs.


Member Enumeration Documentation

Enumerator:
TCP 
UDP 
UNKNOWN 

Definition at line 114 of file Net.cs.


Constructor & Destructor Documentation

Sylloge.Net.IpHeader.IpHeader ( byte[]  data,
int  length 
)

Create an instance of the IP header.

Parameters:
dataThe data to parse
lengthThe length of data to parse

Definition at line 157 of file Net.cs.


Member Function Documentation

delegate void Sylloge.Net.IpHeader.IpErrorEventHandler ( string  message)

Property Documentation

string Sylloge.Net.IpHeader.Checksum [get]

Gets the checksum of the packet.

Definition at line 315 of file Net.cs.

byte [] Sylloge.Net.IpHeader.Data [get]

Gets the data in the IP packet.

Definition at line 355 of file Net.cs.

System.Net.IPAddress Sylloge.Net.IpHeader.DestinationIpAddress [get]

Gets the destination IP address from the packet.

Definition at line 331 of file Net.cs.

string Sylloge.Net.IpHeader.DifferentiatedServices [get]

Gets the differentiated services in hexadecimal format.

Definition at line 242 of file Net.cs.

string Sylloge.Net.IpHeader.Flags [get]

Gets the IP packet flags.

Definition at line 250 of file Net.cs.

string Sylloge.Net.IpHeader.FragmentationOffset [get]

Gets the fragmentation offset from the IP packet.

Definition at line 272 of file Net.cs.

string Sylloge.Net.IpHeader.HeaderLength [get]

Gets the IP header length.

Definition at line 225 of file Net.cs.

string Sylloge.Net.IpHeader.Identification [get]

Gets the ID information from the IP packet.

Definition at line 347 of file Net.cs.

ushort Sylloge.Net.IpHeader.MessageLength [get]

Gets the IP message length.

Definition at line 233 of file Net.cs.

IpProtocol Sylloge.Net.IpHeader.ProtocolType [get]

Gets the IP protocol used.

Definition at line 295 of file Net.cs.

System.Net.IPAddress Sylloge.Net.IpHeader.SourceIpAddress [get]

Gets the source IP address from the packet.

Definition at line 323 of file Net.cs.

string Sylloge.Net.IpHeader.TotalLength [get]

Gets the total length of the IP packet.

Definition at line 339 of file Net.cs.

string Sylloge.Net.IpHeader.TTL [get]

Gets the TTL of the packet.

Definition at line 287 of file Net.cs.

string Sylloge.Net.IpHeader.Version [get]

Gets the IP version from the packet.

Definition at line 207 of file Net.cs.


Event Documentation

IpErrorEventHandler Sylloge.Net.IpHeader.IpError

Occurs on an error in the IP packet.

Definition at line 112 of file Net.cs.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties Events