C# Class STUN.XorMappedAddressAttribute

Inheritance: STUNAttribute
Mostra file Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Methods

Method Description
CreateXorMappedAddress ( Byte TransactionID, String IpAddress, UInt16 Port ) : XorMappedAddressAttribute
ParseXorMappedAddress ( UInt16 att_length, Byte att_value_with_padding, Byte trans_id ) : void

Private Methods

Method Description
XorMappedAddressToByteArray ( Byte transactionID ) : Byte[]

Method Details

CreateXorMappedAddress() public static method

public static CreateXorMappedAddress ( Byte TransactionID, String IpAddress, UInt16 Port ) : XorMappedAddressAttribute
TransactionID Byte
IpAddress String
Port System.UInt16
return XorMappedAddressAttribute

ParseXorMappedAddress() public method

public ParseXorMappedAddress ( UInt16 att_length, Byte att_value_with_padding, Byte trans_id ) : void
att_length System.UInt16
att_value_with_padding Byte
trans_id Byte
return void