A STUN message. More...
Static Public Member Functions | |
static fm.liveswitch.stun.Message | createMessage (int method, fm.liveswitch.stun.MessageType messageType, fm.liveswitch.DataBuffer transactionId) |
Creates a message. More... | |
static int | getAllocateMethod () |
Gets the allocate method. More... | |
static int | getBindingMethod () |
Gets the binding method. More... | |
static int | getChannelBindMethod () |
Gets the channel-bind method. More... | |
static int | getConnectionAttemptMethod () |
Gets the connection-attempt method. More... | |
static int | getConnectionBindMethod () |
Gets the connection-bind method. More... | |
static int | getConnectMethod () |
Gets the connect method. More... | |
static int | getCreatePermissionMethod () |
Gets the create-permission method. More... | |
static int | getDataMethod () |
Gets the data method. More... | |
static byte[] | getMagicCookieBytes () |
Gets the "magic cookie" bytes. More... | |
static long | getMagicCookieValue () |
Gets the "magic cookie" value. More... | |
static int | getRefreshMethod () |
Gets the refresh method. More... | |
static int | getSendMethod () |
Gets the send method. More... | |
static fm.liveswitch.stun.Message | readFrom (fm.liveswitch.DataBuffer buffer) |
Reads a fm.liveswitch.stun.Message instance from a buffer. More... | |
static fm.liveswitch.stun.Message | readFrom (fm.liveswitch.DataBuffer buffer, int offset) |
Reads a fm.liveswitch.stun.Message instance from a buffer. More... | |
static fm.liveswitch.stun.Message | readFrom (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.IntegerHolder length) |
Reads an fm.liveswitch.stun.Message instance from a buffer. More... | |
Protected Member Functions | |
Message (fm.liveswitch.stun.MessageType messageType, fm.liveswitch.DataBuffer transactionId) | |
Initializes a new instance of the fm.liveswitch.stun.Message class. More... | |
Static Protected Member Functions | |
static fm.liveswitch.DataBuffer | generateTransactionId () |
Generates a random transaction ID. More... | |
A STUN message.
|
protected |
Initializes a new instance of the fm.liveswitch.stun.Message class.
messageType | The type of the message. |
transactionId | The transaction ID. |
|
static |
Creates a message.
method | The method. |
messageType | Type of the message. |
transactionId | The transaction ID. |
|
staticprotected |
Generates a random transaction ID.
|
static |
Gets the allocate method.
fm.liveswitch.stun.AlternateServerAttribute fm.liveswitch.stun.Message.getAlternateServer | ( | ) |
Gets the alternate-server attribute.
fm.liveswitch.stun.Attribute [] fm.liveswitch.stun.Message.getAttributes | ( | ) |
Gets the message attributes.
|
static |
Gets the binding method.
|
static |
Gets the channel-bind method.
fm.liveswitch.stun.turn.ChannelNumberAttribute fm.liveswitch.stun.Message.getChannelNumber | ( | ) |
Gets the channel-number attribute.
|
static |
Gets the connection-attempt method.
|
static |
Gets the connection-bind method.
fm.liveswitch.stun.turn.ConnectionIdAttribute fm.liveswitch.stun.Message.getConnectionId | ( | ) |
Gets the connection-id attribute.
|
static |
Gets the connect method.
|
static |
Gets the create-permission method.
fm.liveswitch.stun.turn.DataAttribute fm.liveswitch.stun.Message.getData | ( | ) |
Gets the data attribute.
|
static |
Gets the data method.
fm.liveswitch.stun.turn.DontFragmentAttribute fm.liveswitch.stun.Message.getDontFragment | ( | ) |
Gets the don't-fragment attribute.
fm.liveswitch.stun.ErrorCodeAttribute fm.liveswitch.stun.Message.getErrorCode | ( | ) |
Gets the error-code attribute.
fm.liveswitch.stun.turn.EvenPortAttribute fm.liveswitch.stun.Message.getEvenPort | ( | ) |
Gets the even-port attribute.
fm.liveswitch.stun.FingerprintAttribute fm.liveswitch.stun.Message.getFingerprint | ( | ) |
Gets the fingerprint attribute.
fm.liveswitch.stun.ice.ControlledAttribute fm.liveswitch.stun.Message.getIceControlled | ( | ) |
Gets the ICE-controlled attribute.
fm.liveswitch.stun.ice.ControllingAttribute fm.liveswitch.stun.Message.getIceControlling | ( | ) |
Gets the ICE-controlling attribute.
int fm.liveswitch.stun.Message.getLength | ( | ) |
Gets the length of the message.
fm.liveswitch.stun.turn.LifetimeAttribute fm.liveswitch.stun.Message.getLifetime | ( | ) |
Gets the lifetime attribute.
|
static |
Gets the "magic cookie" bytes.
|
static |
Gets the "magic cookie" value.
fm.liveswitch.stun.MappedAddressAttribute fm.liveswitch.stun.Message.getMappedAddress | ( | ) |
Gets the mapped-address attribute.
fm.liveswitch.stun.MessageIntegrityAttribute fm.liveswitch.stun.Message.getMessageIntegrity | ( | ) |
Gets the message-integrity attribute.
fm.liveswitch.stun.MessageType fm.liveswitch.stun.Message.getMessageType | ( | ) |
Gets the message type.
|
abstract |
Gets the method.
Reimplemented in fm.liveswitch.stun.turn.SendMessage, fm.liveswitch.stun.turn.RefreshMessage, fm.liveswitch.stun.turn.DataMessage, fm.liveswitch.stun.turn.CreatePermissionMessage, fm.liveswitch.stun.turn.ConnectMessage, fm.liveswitch.stun.turn.ConnectionBindMessage, fm.liveswitch.stun.turn.ConnectionAttemptMessage, fm.liveswitch.stun.turn.ChannelBindMessage, fm.liveswitch.stun.turn.AllocateMessage, and fm.liveswitch.stun.BindingMessage.
fm.liveswitch.stun.NonceAttribute fm.liveswitch.stun.Message.getNonce | ( | ) |
Gets the nonce attribute.
int fm.liveswitch.stun.Message.getPayloadLength | ( | ) |
Gets the length of the payload.
fm.liveswitch.stun.ice.PriorityAttribute fm.liveswitch.stun.Message.getPriority | ( | ) |
Gets the priority attribute.
fm.liveswitch.stun.RealmAttribute fm.liveswitch.stun.Message.getRealm | ( | ) |
Gets the realm attribute.
|
static |
Gets the refresh method.
fm.liveswitch.stun.turn.RequestedAddressFamilyAttribute fm.liveswitch.stun.Message.getRequestedAddressFamily | ( | ) |
Gets the requested-address-family attribute.
fm.liveswitch.stun.turn.RequestedTransportAttribute fm.liveswitch.stun.Message.getRequestedTransport | ( | ) |
Gets the requested-transport attribute.
fm.liveswitch.stun.turn.ReservationTokenAttribute fm.liveswitch.stun.Message.getReservationToken | ( | ) |
Gets the reservation-token attribute.
|
static |
Gets the send method.
fm.liveswitch.stun.SoftwareAttribute fm.liveswitch.stun.Message.getSoftware | ( | ) |
Gets the software attribute.
fm.liveswitch.DataBuffer fm.liveswitch.stun.Message.getTransactionId | ( | ) |
Gets the transaction ID.
fm.liveswitch.stun.TransactionTransmitCounterAttribute fm.liveswitch.stun.Message.getTransactionTransmitCounter | ( | ) |
Gets the transaction-transmit-counter attribute.
fm.liveswitch.stun.UnknownAttributesAttribute fm.liveswitch.stun.Message.getUnknownAttributes | ( | ) |
Gets the unknown-attributes attribute.
fm.liveswitch.stun.ice.UseCandidateAttribute fm.liveswitch.stun.Message.getUseCandidate | ( | ) |
Gets the use-candidate attribute.
fm.liveswitch.stun.UsernameAttribute fm.liveswitch.stun.Message.getUsername | ( | ) |
Gets the username attribute.
fm.liveswitch.stun.XorMappedAddressAttribute fm.liveswitch.stun.Message.getXorMappedAddress | ( | ) |
Gets the XOR-mapped-address attribute.
fm.liveswitch.stun.turn.XorPeerAddressAttribute fm.liveswitch.stun.Message.getXorPeerAddress | ( | ) |
Gets the XOR-peer-address attribute.
fm.liveswitch.stun.turn.XorRelayedAddressAttribute fm.liveswitch.stun.Message.getXorRelayedAddress | ( | ) |
Gets the XOR-relayed-address attribute.
|
static |
Reads a fm.liveswitch.stun.Message instance from a buffer.
buffer | The buffer. |
|
static |
Reads a fm.liveswitch.stun.Message instance from a buffer.
buffer | The buffer. |
offset | The offset. |
|
static |
Reads an fm.liveswitch.stun.Message instance from a buffer.
buffer | The buffer. |
offset | The offset. |
length | The length of the parsed segment. |
void fm.liveswitch.stun.Message.setAlternateServer | ( | fm.liveswitch.stun.AlternateServerAttribute | attribute | ) |
Set the alternate-server attribute.
attribute | The alternate-server attribute. |
void fm.liveswitch.stun.Message.setChannelNumber | ( | fm.liveswitch.stun.turn.ChannelNumberAttribute | attribute | ) |
Sets the channel-number attribute.
attribute | The channel-number attribute. |
void fm.liveswitch.stun.Message.setConnectionId | ( | fm.liveswitch.stun.turn.ConnectionIdAttribute | attribute | ) |
Sets the connection-id attribute.
attribute | The connection-id attribute. |
void fm.liveswitch.stun.Message.setData | ( | fm.liveswitch.stun.turn.DataAttribute | attribute | ) |
Sets the data attribute.
attribute | The data attribute. |
void fm.liveswitch.stun.Message.setDontFragment | ( | fm.liveswitch.stun.turn.DontFragmentAttribute | attribute | ) |
Sets the don't-fragment attribute.
attribute | The don't-fragment attribute. |
void fm.liveswitch.stun.Message.setErrorCode | ( | fm.liveswitch.stun.ErrorCodeAttribute | attribute | ) |
Set the error-code attribute.
attribute | The error-code attribute. |
void fm.liveswitch.stun.Message.setEvenPort | ( | fm.liveswitch.stun.turn.EvenPortAttribute | attribute | ) |
Sets the even-port attribute.
attribute | The even-port attribute. |
void fm.liveswitch.stun.Message.setFingerprint | ( | fm.liveswitch.stun.FingerprintAttribute | attribute | ) |
Set the fingerprint attribute.
attribute | The fingerprint attribute. |
void fm.liveswitch.stun.Message.setIceControlled | ( | fm.liveswitch.stun.ice.ControlledAttribute | attribute | ) |
Sets the ICE-controlled attribute.
attribute | The ICE-controlled attribute. |
void fm.liveswitch.stun.Message.setIceControlling | ( | fm.liveswitch.stun.ice.ControllingAttribute | attribute | ) |
Sets the ICE-controlling attribute.
attribute | The ICE-controlling attribute. |
void fm.liveswitch.stun.Message.setLifetime | ( | fm.liveswitch.stun.turn.LifetimeAttribute | attribute | ) |
Sets the lifetime attribute.
attribute | The lifetime attribute. |
void fm.liveswitch.stun.Message.setMappedAddress | ( | fm.liveswitch.stun.MappedAddressAttribute | attribute | ) |
Set the mapped-address attribute.
attribute | The mapped-address attribute. |
void fm.liveswitch.stun.Message.setMessageIntegrity | ( | fm.liveswitch.stun.MessageIntegrityAttribute | attribute | ) |
Set the message-integrity attribute.
attribute | The message-integrity attribute. |
void fm.liveswitch.stun.Message.setNonce | ( | fm.liveswitch.stun.NonceAttribute | attribute | ) |
Set the nonce attribute.
attribute | The nonce attribute. |
void fm.liveswitch.stun.Message.setPriority | ( | fm.liveswitch.stun.ice.PriorityAttribute | attribute | ) |
Sets the priority attribute.
attribute | The priority attribute. |
void fm.liveswitch.stun.Message.setRealm | ( | fm.liveswitch.stun.RealmAttribute | attribute | ) |
Set the realm attribute.
attribute | The realm attribute. |
void fm.liveswitch.stun.Message.setRequestedAddressFamily | ( | fm.liveswitch.stun.turn.RequestedAddressFamilyAttribute | attribute | ) |
Sets the requested-address-family attribute.
attribute | The requested-address-family attribute. |
void fm.liveswitch.stun.Message.setRequestedTransport | ( | fm.liveswitch.stun.turn.RequestedTransportAttribute | attribute | ) |
Sets the requested-transport attribute.
attribute | The requested-transport attribute. |
void fm.liveswitch.stun.Message.setReservationToken | ( | fm.liveswitch.stun.turn.ReservationTokenAttribute | attribute | ) |
Sets the reservation-token attribute.
attribute | The reservation-token attribute. |
void fm.liveswitch.stun.Message.setSoftware | ( | fm.liveswitch.stun.SoftwareAttribute | attribute | ) |
Set the software attribute.
attribute | The software attribute. |
void fm.liveswitch.stun.Message.setTransactionTransmitCounter | ( | fm.liveswitch.stun.TransactionTransmitCounterAttribute | attribute | ) |
Set the transaction-transmit-counter attribute.
attribute | The transaction-transmit-counter attribute. |
void fm.liveswitch.stun.Message.setUnknownAttributes | ( | fm.liveswitch.stun.UnknownAttributesAttribute | attribute | ) |
Set the unknown-attributes attribute.
attribute | The unknown-attributes attribute. |
void fm.liveswitch.stun.Message.setUseCandidate | ( | fm.liveswitch.stun.ice.UseCandidateAttribute | attribute | ) |
Sets the use-candidate attribute.
attribute | The use-candidate attribute. |
void fm.liveswitch.stun.Message.setUsername | ( | fm.liveswitch.stun.UsernameAttribute | attribute | ) |
Set the username attribute.
attribute | The username attribute. |
void fm.liveswitch.stun.Message.setXorMappedAddress | ( | fm.liveswitch.stun.XorMappedAddressAttribute | attribute | ) |
Set the XOR-mapped-address attribute.
attribute | The XOR-mapped-address attribute. |
void fm.liveswitch.stun.Message.setXorPeerAddress | ( | fm.liveswitch.stun.turn.XorPeerAddressAttribute | attribute | ) |
Sets the XOR-peer-address attribute.
attribute | The XOR-peer-address attribute. |
void fm.liveswitch.stun.Message.setXorRelayedAddress | ( | fm.liveswitch.stun.turn.XorRelayedAddressAttribute | attribute | ) |
Sets the XOR-relayed-address attribute.
attribute | The XOR-relayed-address attribute. |
void fm.liveswitch.stun.Message.writeTo | ( | fm.liveswitch.DataBuffer | buffer | ) |
Writes the message to a data buffer.
buffer | The buffer. |
void fm.liveswitch.stun.Message.writeTo | ( | fm.liveswitch.DataBuffer | buffer, |
int | offset | ||
) |
Writes the message to a data buffer.
buffer | The buffer. |
offset | The offset. |
void fm.liveswitch.stun.Message.writeTo | ( | fm.liveswitch.DataBuffer | buffer, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes the message to a data buffer.
buffer | The buffer. |
offset | The offset. |
offsetPlus | The offset plus the value length. |