0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved(Padding) | Req | Resp | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Transaction Transmit Counter comprehension-optional STUN attribute. More...
Public Member Functions | |
int | getNumRequests () |
Gets the number of times the request is transmitted with the same transaction ID to the server. More... | |
int | getNumResponses () |
Gets the number of times a response with the same transaction ID is sent from the server. More... | |
int | getTypeValue () |
Gets the type value. More... | |
void | setNumRequests (int value) |
Sets the number of times the request is transmitted with the same transaction ID to the server. More... | |
void | setNumResponses (int value) |
Sets the number of times a response with the same transaction ID is sent from the server. More... | |
String | toString () |
Returns a string that represents this instance. More... | |
TransactionTransmitCounterAttribute (int numRequests) | |
Initializes a new instance of the fm.liveswitch.stun.TransactionTransmitCounterAttribute class. More... | |
TransactionTransmitCounterAttribute (int numRequests, int numResponses) | |
Initializes a new instance of the fm.liveswitch.stun.TransactionTransmitCounterAttribute class. More... | |
![]() | |
int | getLength () |
Gets the length of the attribute, including header and padding. More... | |
int | getPaddingLength (int valueLength) |
Gets the length of the padding. More... | |
void | writeTo (fm.liveswitch.DataBuffer buffer, int offset) |
Writes the attribute to a data buffer. More... | |
void | writeTo (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes the attribute to a data buffer. More... | |
Static Public Member Functions | |
static fm.liveswitch.stun.TransactionTransmitCounterAttribute | readValueFrom (fm.liveswitch.DataBuffer buffer, int offset) |
Initializes a new instance of the fm.liveswitch.stun.TransactionTransmitCounterAttribute class. More... | |
![]() | |
static int | getAlternateServerType () |
Gets the ALTERNATE-SERVER type. More... | |
static int | getChannelNumberType () |
Gets the CHANNEL-NUMBER type. More... | |
static int | getConnectionIdType () |
Gets the CONNECTION-ID type. More... | |
static int | getControlledType () |
Gets the CONTROLLED type. More... | |
static int | getControllingType () |
Gets the CONTROLLING type. More... | |
static int | getDataType () |
Gets the DATA type. More... | |
static int | getDontFragmentType () |
Gets the DONT-FRAGMENT type. More... | |
static int | getErrorCodeType () |
Gets the ERROR-CODE type. More... | |
static int | getEvenPortType () |
Gets the EVEN-PORT type. More... | |
static int | getFingerprintType () |
Gets the FINGERPRINT type. More... | |
static int | getLifetimeType () |
Gets the LIFETIME type. More... | |
static int | getMappedAddressType () |
Gets the MAPPED-ADDRESS type. More... | |
static int | getMessageIntegrityType () |
Gets the MESSAGE-INTEGRITY type. More... | |
static int | getNonceType () |
Gets the NONCE type. More... | |
static int | getPriorityType () |
Gets the PRIORITY type. More... | |
static int | getRealmType () |
Gets the REALM type. More... | |
static int | getRequestedAddressFamilyType () |
Gets the REQUESTED-ADDRESS-FAMILY type. More... | |
static int | getRequestedTransportType () |
Gets the REQUESTED-TRANSPORT type. More... | |
static int | getReservationTokenType () |
Gets the RESERVATION-TOKEN type. More... | |
static int | getSoftwareType () |
Gets the SOFTWARE type. More... | |
static int | getTransactionTransmitCounterType () |
Gets the comprehension-optional TRANSACTION_TRANSMIT_COUNTER type defined in RFC 7982. More... | |
static int | getUnknownAttributesType () |
Gets the UNKNOWN-ATTRIBUTES type. More... | |
static int | getUseCandidateType () |
Gets the USE-CANDIDATE type. More... | |
static int | getUsernameType () |
Gets the USERNAME type. More... | |
static int | getXorMappedAddressType () |
Gets the XOR-MAPPED-ADDRESS type. More... | |
static int | getXorPeerAddressType () |
Gets the XOR-PEER-ADDRESS type. More... | |
static int | getXorRelayedAddressType () |
Gets the XOR-RELAYED-ADDRESS type. More... | |
static int | nextLength (fm.liveswitch.DataBuffer buffer, int offset) |
Reads the length of the next attribute from a data buffer, including header and padding. More... | |
static fm.liveswitch.stun.Attribute | readFrom (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.IntegerHolder offsetPlus, fm.liveswitch.DataBuffer transactionId, fm.liveswitch.DataBuffer messageBuffer) |
Reads an fm.liveswitch.stun.Attribute from a data buffer. More... | |
static fm.liveswitch.stun.Attribute | readFrom (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.DataBuffer transactionId, fm.liveswitch.DataBuffer messageBuffer) |
Reads an fm.liveswitch.stun.Attribute from a data buffer. More... | |
Protected Member Functions | |
int | getValueLength () |
Gets the length of the value. More... | |
void | writeValueTo (fm.liveswitch.DataBuffer buffer, int offset) |
Writes the value to. More... | |
![]() | |
Attribute () | |
void | writeIPAddress (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.AddressType addressType, String ipAddress) |
Writes an IP address. More... | |
void | writePort (fm.liveswitch.DataBuffer buffer, int offset, int port) |
Writes a port. More... | |
void | writeXorIPAddress (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.AddressType addressType, String ipAddress, fm.liveswitch.DataBuffer transactionId) |
Writes an XOR'd IP address. More... | |
void | writeXorPort (fm.liveswitch.DataBuffer buffer, int offset, int port, fm.liveswitch.DataBuffer transactionId) |
Writes an XOR'd port. More... | |
Additional Inherited Members | |
![]() | |
static fm.liveswitch.AddressType | readAddressType (fm.liveswitch.DataBuffer buffer, int offset) |
Reads an address type. More... | |
static String | readIPAddress (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.AddressType addressType) |
Reads an IP address. More... | |
static int | readPort (fm.liveswitch.DataBuffer buffer, int offset) |
Reads a port. More... | |
static String | readXorIPAddress (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.AddressType addressType, fm.liveswitch.DataBuffer transactionId) |
Reads an XOR'd IP address. More... | |
static int | readXorPort (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.DataBuffer transactionId) |
Reads an XOR'd port. More... | |
static void | writeAddressType (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.AddressType addressType) |
Writes an address type. More... | |
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved(Padding) | Req | Resp | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Transaction Transmit Counter comprehension-optional STUN attribute.
fm.liveswitch.stun.TransactionTransmitCounterAttribute.TransactionTransmitCounterAttribute | ( | int | numRequests | ) |
Initializes a new instance of the fm.liveswitch.stun.TransactionTransmitCounterAttribute class.
numRequests | The number of times the request is transmitted with the same transaction ID to the server. |
fm.liveswitch.stun.TransactionTransmitCounterAttribute.TransactionTransmitCounterAttribute | ( | int | numRequests, |
int | numResponses | ||
) |
Initializes a new instance of the fm.liveswitch.stun.TransactionTransmitCounterAttribute class.
numRequests | The number of times the request is transmitted with the same transaction ID to the server. |
numResponses | The number of times a response with the same transaction ID is sent from the server. |
int fm.liveswitch.stun.TransactionTransmitCounterAttribute.getNumRequests | ( | ) |
Gets the number of times the request is transmitted with the same transaction ID to the server.
int fm.liveswitch.stun.TransactionTransmitCounterAttribute.getNumResponses | ( | ) |
Gets the number of times a response with the same transaction ID is sent from the server.
MUST be set to zero in requests and ignored by the receiver.
int fm.liveswitch.stun.TransactionTransmitCounterAttribute.getTypeValue | ( | ) |
Gets the type value.
Reimplemented from fm.liveswitch.stun.Attribute.
|
protected |
Gets the length of the value.
Reimplemented from fm.liveswitch.stun.Attribute.
|
static |
Initializes a new instance of the fm.liveswitch.stun.TransactionTransmitCounterAttribute class.
buffer | The buffer. |
offset | The offset. |
void fm.liveswitch.stun.TransactionTransmitCounterAttribute.setNumRequests | ( | int | value | ) |
Sets the number of times the request is transmitted with the same transaction ID to the server.
void fm.liveswitch.stun.TransactionTransmitCounterAttribute.setNumResponses | ( | int | value | ) |
Sets the number of times a response with the same transaction ID is sent from the server.
MUST be set to zero in requests and ignored by the receiver.
String fm.liveswitch.stun.TransactionTransmitCounterAttribute.toString | ( | ) |
Returns a string that represents this instance.
|
protected |
Writes the value to.
buffer | The buffer. |
offset | The offset. |
Reimplemented from fm.liveswitch.stun.Attribute.