fm.liveswitch.stun.turn.SendMessage Class Referenceabstract

A generic STUN send message. More...

Public Member Functions

int getMethod ()
 Gets the method. More...
 
 SendMessage (fm.liveswitch.stun.MessageType messageType, fm.liveswitch.DataBuffer transactionId)
 Initializes a new instance of the fm.liveswitch.stun.turn.SendMessage class. More...
 
- Public Member Functions inherited from fm.liveswitch.stun.Message
fm.liveswitch.stun.AlternateServerAttribute getAlternateServer ()
 Gets the alternate-server attribute. More...
 
fm.liveswitch.stun.Attribute[] getAttributes ()
 Gets the message attributes. More...
 
fm.liveswitch.stun.turn.ChannelNumberAttribute getChannelNumber ()
 Gets the channel-number attribute. More...
 
fm.liveswitch.stun.turn.ConnectionIdAttribute getConnectionId ()
 Gets the connection-id attribute. More...
 
fm.liveswitch.stun.turn.DataAttribute getData ()
 Gets the data attribute. More...
 
fm.liveswitch.stun.turn.DontFragmentAttribute getDontFragment ()
 Gets the don't-fragment attribute. More...
 
fm.liveswitch.stun.ErrorCodeAttribute getErrorCode ()
 Gets the error-code attribute. More...
 
fm.liveswitch.stun.turn.EvenPortAttribute getEvenPort ()
 Gets the even-port attribute. More...
 
fm.liveswitch.stun.FingerprintAttribute getFingerprint ()
 Gets the fingerprint attribute. More...
 
fm.liveswitch.stun.ice.ControlledAttribute getIceControlled ()
 Gets the ICE-controlled attribute. More...
 
fm.liveswitch.stun.ice.ControllingAttribute getIceControlling ()
 Gets the ICE-controlling attribute. More...
 
int getLength ()
 Gets the length of the message. More...
 
fm.liveswitch.stun.turn.LifetimeAttribute getLifetime ()
 Gets the lifetime attribute. More...
 
fm.liveswitch.stun.MappedAddressAttribute getMappedAddress ()
 Gets the mapped-address attribute. More...
 
fm.liveswitch.stun.MessageIntegrityAttribute getMessageIntegrity ()
 Gets the message-integrity attribute. More...
 
fm.liveswitch.stun.MessageType getMessageType ()
 Gets the message type. More...
 
fm.liveswitch.stun.NonceAttribute getNonce ()
 Gets the nonce attribute. More...
 
int getPayloadLength ()
 Gets the length of the payload. More...
 
fm.liveswitch.stun.ice.PriorityAttribute getPriority ()
 Gets the priority attribute. More...
 
fm.liveswitch.stun.RealmAttribute getRealm ()
 Gets the realm attribute. More...
 
fm.liveswitch.stun.turn.RequestedAddressFamilyAttribute getRequestedAddressFamily ()
 Gets the requested-address-family attribute. More...
 
fm.liveswitch.stun.turn.RequestedTransportAttribute getRequestedTransport ()
 Gets the requested-transport attribute. More...
 
fm.liveswitch.stun.turn.ReservationTokenAttribute getReservationToken ()
 Gets the reservation-token attribute. More...
 
fm.liveswitch.stun.SoftwareAttribute getSoftware ()
 Gets the software attribute. More...
 
fm.liveswitch.DataBuffer getTransactionId ()
 Gets the transaction ID. More...
 
fm.liveswitch.stun.TransactionTransmitCounterAttribute getTransactionTransmitCounter ()
 Gets the transaction-transmit-counter attribute. More...
 
fm.liveswitch.stun.UnknownAttributesAttribute getUnknownAttributes ()
 Gets the unknown-attributes attribute. More...
 
fm.liveswitch.stun.ice.UseCandidateAttribute getUseCandidate ()
 Gets the use-candidate attribute. More...
 
fm.liveswitch.stun.UsernameAttribute getUsername ()
 Gets the username attribute. More...
 
fm.liveswitch.stun.XorMappedAddressAttribute getXorMappedAddress ()
 Gets the XOR-mapped-address attribute. More...
 
fm.liveswitch.stun.turn.XorPeerAddressAttribute getXorPeerAddress ()
 Gets the XOR-peer-address attribute. More...
 
fm.liveswitch.stun.turn.XorRelayedAddressAttribute getXorRelayedAddress ()
 Gets the XOR-relayed-address attribute. More...
 
void setAlternateServer (fm.liveswitch.stun.AlternateServerAttribute attribute)
 Set the alternate-server attribute. More...
 
void setChannelNumber (fm.liveswitch.stun.turn.ChannelNumberAttribute attribute)
 Sets the channel-number attribute. More...
 
void setConnectionId (fm.liveswitch.stun.turn.ConnectionIdAttribute attribute)
 Sets the connection-id attribute. More...
 
void setData (fm.liveswitch.stun.turn.DataAttribute attribute)
 Sets the data attribute. More...
 
void setDontFragment (fm.liveswitch.stun.turn.DontFragmentAttribute attribute)
 Sets the don't-fragment attribute. More...
 
void setErrorCode (fm.liveswitch.stun.ErrorCodeAttribute attribute)
 Set the error-code attribute. More...
 
void setEvenPort (fm.liveswitch.stun.turn.EvenPortAttribute attribute)
 Sets the even-port attribute. More...
 
void setFingerprint (fm.liveswitch.stun.FingerprintAttribute attribute)
 Set the fingerprint attribute. More...
 
void setIceControlled (fm.liveswitch.stun.ice.ControlledAttribute attribute)
 Sets the ICE-controlled attribute. More...
 
void setIceControlling (fm.liveswitch.stun.ice.ControllingAttribute attribute)
 Sets the ICE-controlling attribute. More...
 
void setLifetime (fm.liveswitch.stun.turn.LifetimeAttribute attribute)
 Sets the lifetime attribute. More...
 
void setMappedAddress (fm.liveswitch.stun.MappedAddressAttribute attribute)
 Set the mapped-address attribute. More...
 
void setMessageIntegrity (fm.liveswitch.stun.MessageIntegrityAttribute attribute)
 Set the message-integrity attribute. More...
 
void setNonce (fm.liveswitch.stun.NonceAttribute attribute)
 Set the nonce attribute. More...
 
void setPriority (fm.liveswitch.stun.ice.PriorityAttribute attribute)
 Sets the priority attribute. More...
 
void setRealm (fm.liveswitch.stun.RealmAttribute attribute)
 Set the realm attribute. More...
 
void setRequestedAddressFamily (fm.liveswitch.stun.turn.RequestedAddressFamilyAttribute attribute)
 Sets the requested-address-family attribute. More...
 
void setRequestedTransport (fm.liveswitch.stun.turn.RequestedTransportAttribute attribute)
 Sets the requested-transport attribute. More...
 
void setReservationToken (fm.liveswitch.stun.turn.ReservationTokenAttribute attribute)
 Sets the reservation-token attribute. More...
 
void setSoftware (fm.liveswitch.stun.SoftwareAttribute attribute)
 Set the software attribute. More...
 
void setTransactionTransmitCounter (fm.liveswitch.stun.TransactionTransmitCounterAttribute attribute)
 Set the transaction-transmit-counter attribute. More...
 
void setUnknownAttributes (fm.liveswitch.stun.UnknownAttributesAttribute attribute)
 Set the unknown-attributes attribute. More...
 
void setUseCandidate (fm.liveswitch.stun.ice.UseCandidateAttribute attribute)
 Sets the use-candidate attribute. More...
 
void setUsername (fm.liveswitch.stun.UsernameAttribute attribute)
 Set the username attribute. More...
 
void setXorMappedAddress (fm.liveswitch.stun.XorMappedAddressAttribute attribute)
 Set the XOR-mapped-address attribute. More...
 
void setXorPeerAddress (fm.liveswitch.stun.turn.XorPeerAddressAttribute attribute)
 Sets the XOR-peer-address attribute. More...
 
void setXorRelayedAddress (fm.liveswitch.stun.turn.XorRelayedAddressAttribute attribute)
 Sets the XOR-relayed-address attribute. More...
 
void writeTo (fm.liveswitch.DataBuffer buffer)
 Writes the message to a data buffer. More...
 
void writeTo (fm.liveswitch.DataBuffer buffer, int offset)
 Writes the message to a data buffer. More...
 
void writeTo (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.IntegerHolder offsetPlus)
 Writes the message to a data buffer. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fm.liveswitch.stun.Message
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 inherited from fm.liveswitch.stun.Message
 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 inherited from fm.liveswitch.stun.Message
static fm.liveswitch.DataBuffer generateTransactionId ()
 Generates a random transaction ID. More...
 

Detailed Description

A generic STUN send message.

Constructor & Destructor Documentation

◆ SendMessage()

fm.liveswitch.stun.turn.SendMessage.SendMessage ( fm.liveswitch.stun.MessageType  messageType,
fm.liveswitch.DataBuffer  transactionId 
)

Initializes a new instance of the fm.liveswitch.stun.turn.SendMessage class.

Parameters
messageTypeThe type of the message.
transactionIdThe transaction ID.

Member Function Documentation

◆ getMethod()

int fm.liveswitch.stun.turn.SendMessage.getMethod ( )

Gets the method.

Reimplemented from fm.liveswitch.stun.Message.