C# Class NetworkPackets.StunPacket.AttributeAddress

An attribute class for those that involve network addresses.
Inheritance: System.Attribute
Datei anzeigen Open project: pstjuste/brunet

Public Properties

Property Type Description
Family FamilyType
IP System.Net.IPAddress
Port ushort

Public Methods

Method Description
AttributeAddress ( AttributeType type, IPAddress ip, ushort port ) : Brunet.Util

Create an AttributeAddress.

AttributeAddress ( AttributeType type, MemBlock data ) : Brunet.Util

Parse an AttributeAddress.

CreateAddressData ( IPAddress ip, ushort port ) : MemBlock

Method Details

AttributeAddress() public method

Create an AttributeAddress.
public AttributeAddress ( AttributeType type, IPAddress ip, ushort port ) : Brunet.Util
type AttributeType
ip System.Net.IPAddress
port ushort
return Brunet.Util

AttributeAddress() public method

Parse an AttributeAddress.
public AttributeAddress ( AttributeType type, MemBlock data ) : Brunet.Util
type AttributeType
data Brunet.Util.MemBlock
return Brunet.Util

CreateAddressData() public static method

public static CreateAddressData ( IPAddress ip, ushort port ) : MemBlock
ip System.Net.IPAddress
port ushort
return Brunet.Util.MemBlock

Property Details

Family public_oe property

The address family type.
public FamilyType Family
return FamilyType

IP public_oe property

The address associated with the AttributeAddress.
public IPAddress,System.Net IP
return System.Net.IPAddress

Port public_oe property

The port associated with the AttributeAddress.
public ushort Port
return ushort