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

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

List of all members.

Public Member Functions

delegate void TcpErrorEventHandler (string message)
 TcpHeader (byte[] data, int length)
 Create an instance of the TCP header with specific data.

Properties

string SourcePort [get]
 Get the source port from the TCP header.
string DestinationPort [get]
 Get the destination port from the TCP header.
string SequenceNumber [get]
 Get the sequence number of the TCP packet.
string AcknowledgementNumber [get]
 Get the acknowledgement number (ACK) of the TCP packet.
string DataOffsetAndFlags [get]
 Get the data offset and flags of the TCP packet.
string Window [get]
 Get the TCP window.
string Checksum [get]
 Get the TCP header checksum.
string UrgentPointer [get]
 Get the TCP header urgent pointer (if any)
string Flags [get]
 Get the TCP flags.
string HeaderLength [get]
 Get the TCP header length.
ushort MessageLength [get]
 Get the TCP message length.
byte[] TcpData [get]
 Get the TCP data.

Events

TcpErrorEventHandler TcpError
 Occurs when an error happens.

Detailed Description

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

Definition at line 447 of file Net.cs.


Constructor & Destructor Documentation

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

Create an instance of the TCP header with specific data.

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

Definition at line 489 of file Net.cs.


Member Function Documentation

delegate void Sylloge.Net.TcpHeader.TcpErrorEventHandler ( string  message)

Property Documentation

string Sylloge.Net.TcpHeader.AcknowledgementNumber [get]

Get the acknowledgement number (ACK) of the TCP packet.

Definition at line 555 of file Net.cs.

string Sylloge.Net.TcpHeader.Checksum [get]

Get the TCP header checksum.

Definition at line 588 of file Net.cs.

string Sylloge.Net.TcpHeader.DataOffsetAndFlags [get]

Get the data offset and flags of the TCP packet.

Definition at line 572 of file Net.cs.

string Sylloge.Net.TcpHeader.DestinationPort [get]

Get the destination port from the TCP header.

Definition at line 539 of file Net.cs.

string Sylloge.Net.TcpHeader.Flags [get]

Get the TCP flags.

Definition at line 611 of file Net.cs.

string Sylloge.Net.TcpHeader.HeaderLength [get]

Get the TCP header length.

Definition at line 651 of file Net.cs.

ushort Sylloge.Net.TcpHeader.MessageLength [get]

Get the TCP message length.

Definition at line 659 of file Net.cs.

string Sylloge.Net.TcpHeader.SequenceNumber [get]

Get the sequence number of the TCP packet.

Definition at line 547 of file Net.cs.

string Sylloge.Net.TcpHeader.SourcePort [get]

Get the source port from the TCP header.

Definition at line 531 of file Net.cs.

byte [] Sylloge.Net.TcpHeader.TcpData [get]

Get the TCP data.

Definition at line 667 of file Net.cs.

string Sylloge.Net.TcpHeader.UrgentPointer [get]

Get the TCP header urgent pointer (if any)

Definition at line 596 of file Net.cs.

string Sylloge.Net.TcpHeader.Window [get]

Get the TCP window.

Definition at line 580 of file Net.cs.


Event Documentation

TcpErrorEventHandler Sylloge.Net.TcpHeader.TcpError

Occurs when an error happens.

Definition at line 453 of file Net.cs.


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