C# Class NetworkPackets.StunPacket

Parses and creates Stun packets as defined by RFC 5389.
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
Attributes List
Class ClassType
Data Brunet.Util.MemBlock
EMPTY_ATTRIBUTES List
MAGIC_COOKIE byte[]
Message MessageType
TransactionID Brunet.Util.MemBlock

Méthodes publiques

Méthode Description
StunPacket ( ClassType ct, MessageType mt, List attributes ) : Brunet.Util

Generate an Stun packet.

StunPacket ( MemBlock packet ) : Brunet.Util

Parse a Stun packet.

Method Details

StunPacket() public méthode

Generate an Stun packet.
public StunPacket ( ClassType ct, MessageType mt, List attributes ) : Brunet.Util
ct ClassType
mt MessageType
attributes List
Résultat Brunet.Util

StunPacket() public méthode

Parse a Stun packet.
public StunPacket ( MemBlock packet ) : Brunet.Util
packet Brunet.Util.MemBlock
Résultat Brunet.Util

Property Details

Attributes public_oe property

List of attributes in this packet.
public List Attributes
Résultat List

Class public_oe property

The class type for this packet.
public ClassType Class
Résultat ClassType

Data public_oe property

The whole packet.
public MemBlock,Brunet.Util Data
Résultat Brunet.Util.MemBlock

EMPTY_ATTRIBUTES public_oe static_oe property

public static List EMPTY_ATTRIBUTES
Résultat List

MAGIC_COOKIE public_oe static_oe property

public static byte[] MAGIC_COOKIE
Résultat byte[]

Message public_oe property

The message type for this packet.
public MessageType Message
Résultat MessageType

TransactionID public_oe property

Transaction ID that uniquely identifies this packet.
public MemBlock,Brunet.Util TransactionID
Résultat Brunet.Util.MemBlock