fm.liveswitch.stun.Message Class Referenceabstract

A STUN message. More...

Public Member Functions

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...
 
abstract int getMethod ()
 Gets the method. 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...
 

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...
 

Detailed Description

A STUN message.

Constructor & Destructor Documentation

◆ Message()

fm.liveswitch.stun.Message.Message ( fm.liveswitch.stun.MessageType  messageType,
fm.liveswitch.DataBuffer  transactionId 
)
protected

Initializes a new instance of the fm.liveswitch.stun.Message class.

Parameters
messageTypeThe type of the message.
transactionIdThe transaction ID.

Member Function Documentation

◆ createMessage()

static fm.liveswitch.stun.Message fm.liveswitch.stun.Message.createMessage ( int  method,
fm.liveswitch.stun.MessageType  messageType,
fm.liveswitch.DataBuffer  transactionId 
)
static

Creates a message.

Parameters
methodThe method.
messageTypeType of the message.
transactionIdThe transaction ID.

◆ generateTransactionId()

static fm.liveswitch.DataBuffer fm.liveswitch.stun.Message.generateTransactionId ( )
staticprotected

Generates a random transaction ID.

◆ getAllocateMethod()

static int fm.liveswitch.stun.Message.getAllocateMethod ( )
static

Gets the allocate method.

◆ getAlternateServer()

fm.liveswitch.stun.AlternateServerAttribute fm.liveswitch.stun.Message.getAlternateServer ( )

Gets the alternate-server attribute.

◆ getAttributes()

fm.liveswitch.stun.Attribute [] fm.liveswitch.stun.Message.getAttributes ( )

Gets the message attributes.

◆ getBindingMethod()

static int fm.liveswitch.stun.Message.getBindingMethod ( )
static

Gets the binding method.

◆ getChannelBindMethod()

static int fm.liveswitch.stun.Message.getChannelBindMethod ( )
static

Gets the channel-bind method.

◆ getChannelNumber()

fm.liveswitch.stun.turn.ChannelNumberAttribute fm.liveswitch.stun.Message.getChannelNumber ( )

Gets the channel-number attribute.

◆ getConnectionAttemptMethod()

static int fm.liveswitch.stun.Message.getConnectionAttemptMethod ( )
static

Gets the connection-attempt method.

◆ getConnectionBindMethod()

static int fm.liveswitch.stun.Message.getConnectionBindMethod ( )
static

Gets the connection-bind method.

◆ getConnectionId()

fm.liveswitch.stun.turn.ConnectionIdAttribute fm.liveswitch.stun.Message.getConnectionId ( )

Gets the connection-id attribute.

◆ getConnectMethod()

static int fm.liveswitch.stun.Message.getConnectMethod ( )
static

Gets the connect method.

◆ getCreatePermissionMethod()

static int fm.liveswitch.stun.Message.getCreatePermissionMethod ( )
static

Gets the create-permission method.

◆ getData()

fm.liveswitch.stun.turn.DataAttribute fm.liveswitch.stun.Message.getData ( )

Gets the data attribute.

◆ getDataMethod()

static int fm.liveswitch.stun.Message.getDataMethod ( )
static

Gets the data method.

◆ getDontFragment()

fm.liveswitch.stun.turn.DontFragmentAttribute fm.liveswitch.stun.Message.getDontFragment ( )

Gets the don't-fragment attribute.

◆ getErrorCode()

fm.liveswitch.stun.ErrorCodeAttribute fm.liveswitch.stun.Message.getErrorCode ( )

Gets the error-code attribute.

◆ getEvenPort()

fm.liveswitch.stun.turn.EvenPortAttribute fm.liveswitch.stun.Message.getEvenPort ( )

Gets the even-port attribute.

◆ getFingerprint()

fm.liveswitch.stun.FingerprintAttribute fm.liveswitch.stun.Message.getFingerprint ( )

Gets the fingerprint attribute.

◆ getIceControlled()

fm.liveswitch.stun.ice.ControlledAttribute fm.liveswitch.stun.Message.getIceControlled ( )

Gets the ICE-controlled attribute.

◆ getIceControlling()

fm.liveswitch.stun.ice.ControllingAttribute fm.liveswitch.stun.Message.getIceControlling ( )

Gets the ICE-controlling attribute.

◆ getLength()

int fm.liveswitch.stun.Message.getLength ( )

Gets the length of the message.

◆ getLifetime()

fm.liveswitch.stun.turn.LifetimeAttribute fm.liveswitch.stun.Message.getLifetime ( )

Gets the lifetime attribute.

◆ getMagicCookieBytes()

static byte [] fm.liveswitch.stun.Message.getMagicCookieBytes ( )
static

Gets the "magic cookie" bytes.

◆ getMagicCookieValue()

static long fm.liveswitch.stun.Message.getMagicCookieValue ( )
static

Gets the "magic cookie" value.

◆ getMappedAddress()

fm.liveswitch.stun.MappedAddressAttribute fm.liveswitch.stun.Message.getMappedAddress ( )

Gets the mapped-address attribute.

◆ getMessageIntegrity()

fm.liveswitch.stun.MessageIntegrityAttribute fm.liveswitch.stun.Message.getMessageIntegrity ( )

Gets the message-integrity attribute.

◆ getMessageType()

fm.liveswitch.stun.MessageType fm.liveswitch.stun.Message.getMessageType ( )

Gets the message type.

◆ getMethod()

◆ getNonce()

fm.liveswitch.stun.NonceAttribute fm.liveswitch.stun.Message.getNonce ( )

Gets the nonce attribute.

◆ getPayloadLength()

int fm.liveswitch.stun.Message.getPayloadLength ( )

Gets the length of the payload.

◆ getPriority()

fm.liveswitch.stun.ice.PriorityAttribute fm.liveswitch.stun.Message.getPriority ( )

Gets the priority attribute.

◆ getRealm()

fm.liveswitch.stun.RealmAttribute fm.liveswitch.stun.Message.getRealm ( )

Gets the realm attribute.

◆ getRefreshMethod()

static int fm.liveswitch.stun.Message.getRefreshMethod ( )
static

Gets the refresh method.

◆ getRequestedAddressFamily()

fm.liveswitch.stun.turn.RequestedAddressFamilyAttribute fm.liveswitch.stun.Message.getRequestedAddressFamily ( )

Gets the requested-address-family attribute.

◆ getRequestedTransport()

fm.liveswitch.stun.turn.RequestedTransportAttribute fm.liveswitch.stun.Message.getRequestedTransport ( )

Gets the requested-transport attribute.

◆ getReservationToken()

fm.liveswitch.stun.turn.ReservationTokenAttribute fm.liveswitch.stun.Message.getReservationToken ( )

Gets the reservation-token attribute.

◆ getSendMethod()

static int fm.liveswitch.stun.Message.getSendMethod ( )
static

Gets the send method.

◆ getSoftware()

fm.liveswitch.stun.SoftwareAttribute fm.liveswitch.stun.Message.getSoftware ( )

Gets the software attribute.

◆ getTransactionId()

fm.liveswitch.DataBuffer fm.liveswitch.stun.Message.getTransactionId ( )

Gets the transaction ID.

◆ getTransactionTransmitCounter()

fm.liveswitch.stun.TransactionTransmitCounterAttribute fm.liveswitch.stun.Message.getTransactionTransmitCounter ( )

Gets the transaction-transmit-counter attribute.

◆ getUnknownAttributes()

fm.liveswitch.stun.UnknownAttributesAttribute fm.liveswitch.stun.Message.getUnknownAttributes ( )

Gets the unknown-attributes attribute.

◆ getUseCandidate()

fm.liveswitch.stun.ice.UseCandidateAttribute fm.liveswitch.stun.Message.getUseCandidate ( )

Gets the use-candidate attribute.

◆ getUsername()

fm.liveswitch.stun.UsernameAttribute fm.liveswitch.stun.Message.getUsername ( )

Gets the username attribute.

◆ getXorMappedAddress()

fm.liveswitch.stun.XorMappedAddressAttribute fm.liveswitch.stun.Message.getXorMappedAddress ( )

Gets the XOR-mapped-address attribute.

◆ getXorPeerAddress()

fm.liveswitch.stun.turn.XorPeerAddressAttribute fm.liveswitch.stun.Message.getXorPeerAddress ( )

Gets the XOR-peer-address attribute.

◆ getXorRelayedAddress()

fm.liveswitch.stun.turn.XorRelayedAddressAttribute fm.liveswitch.stun.Message.getXorRelayedAddress ( )

Gets the XOR-relayed-address attribute.

◆ readFrom() [1/3]

static fm.liveswitch.stun.Message fm.liveswitch.stun.Message.readFrom ( fm.liveswitch.DataBuffer  buffer)
static

Reads a fm.liveswitch.stun.Message instance from a buffer.

Parameters
bufferThe buffer.

◆ readFrom() [2/3]

static fm.liveswitch.stun.Message fm.liveswitch.stun.Message.readFrom ( fm.liveswitch.DataBuffer  buffer,
int  offset 
)
static

Reads a fm.liveswitch.stun.Message instance from a buffer.

Parameters
bufferThe buffer.
offsetThe offset.

◆ readFrom() [3/3]

static fm.liveswitch.stun.Message fm.liveswitch.stun.Message.readFrom ( fm.liveswitch.DataBuffer  buffer,
int  offset,
fm.liveswitch.IntegerHolder  length 
)
static

Reads an fm.liveswitch.stun.Message instance from a buffer.

Parameters
bufferThe buffer.
offsetThe offset.
lengthThe length of the parsed segment.

◆ setAlternateServer()

void fm.liveswitch.stun.Message.setAlternateServer ( fm.liveswitch.stun.AlternateServerAttribute  attribute)

Set the alternate-server attribute.

Parameters
attributeThe alternate-server attribute.

◆ setChannelNumber()

void fm.liveswitch.stun.Message.setChannelNumber ( fm.liveswitch.stun.turn.ChannelNumberAttribute  attribute)

Sets the channel-number attribute.

Parameters
attributeThe channel-number attribute.

◆ setConnectionId()

void fm.liveswitch.stun.Message.setConnectionId ( fm.liveswitch.stun.turn.ConnectionIdAttribute  attribute)

Sets the connection-id attribute.

Parameters
attributeThe connection-id attribute.

◆ setData()

void fm.liveswitch.stun.Message.setData ( fm.liveswitch.stun.turn.DataAttribute  attribute)

Sets the data attribute.

Parameters
attributeThe data attribute.

◆ setDontFragment()

void fm.liveswitch.stun.Message.setDontFragment ( fm.liveswitch.stun.turn.DontFragmentAttribute  attribute)

Sets the don't-fragment attribute.

Parameters
attributeThe don't-fragment attribute.

◆ setErrorCode()

void fm.liveswitch.stun.Message.setErrorCode ( fm.liveswitch.stun.ErrorCodeAttribute  attribute)

Set the error-code attribute.

Parameters
attributeThe error-code attribute.

◆ setEvenPort()

void fm.liveswitch.stun.Message.setEvenPort ( fm.liveswitch.stun.turn.EvenPortAttribute  attribute)

Sets the even-port attribute.

Parameters
attributeThe even-port attribute.

◆ setFingerprint()

void fm.liveswitch.stun.Message.setFingerprint ( fm.liveswitch.stun.FingerprintAttribute  attribute)

Set the fingerprint attribute.

Parameters
attributeThe fingerprint attribute.

◆ setIceControlled()

void fm.liveswitch.stun.Message.setIceControlled ( fm.liveswitch.stun.ice.ControlledAttribute  attribute)

Sets the ICE-controlled attribute.

Parameters
attributeThe ICE-controlled attribute.

◆ setIceControlling()

void fm.liveswitch.stun.Message.setIceControlling ( fm.liveswitch.stun.ice.ControllingAttribute  attribute)

Sets the ICE-controlling attribute.

Parameters
attributeThe ICE-controlling attribute.

◆ setLifetime()

void fm.liveswitch.stun.Message.setLifetime ( fm.liveswitch.stun.turn.LifetimeAttribute  attribute)

Sets the lifetime attribute.

Parameters
attributeThe lifetime attribute.

◆ setMappedAddress()

void fm.liveswitch.stun.Message.setMappedAddress ( fm.liveswitch.stun.MappedAddressAttribute  attribute)

Set the mapped-address attribute.

Parameters
attributeThe mapped-address attribute.

◆ setMessageIntegrity()

void fm.liveswitch.stun.Message.setMessageIntegrity ( fm.liveswitch.stun.MessageIntegrityAttribute  attribute)

Set the message-integrity attribute.

Parameters
attributeThe message-integrity attribute.

◆ setNonce()

void fm.liveswitch.stun.Message.setNonce ( fm.liveswitch.stun.NonceAttribute  attribute)

Set the nonce attribute.

Parameters
attributeThe nonce attribute.

◆ setPriority()

void fm.liveswitch.stun.Message.setPriority ( fm.liveswitch.stun.ice.PriorityAttribute  attribute)

Sets the priority attribute.

Parameters
attributeThe priority attribute.

◆ setRealm()

void fm.liveswitch.stun.Message.setRealm ( fm.liveswitch.stun.RealmAttribute  attribute)

Set the realm attribute.

Parameters
attributeThe realm attribute.

◆ setRequestedAddressFamily()

void fm.liveswitch.stun.Message.setRequestedAddressFamily ( fm.liveswitch.stun.turn.RequestedAddressFamilyAttribute  attribute)

Sets the requested-address-family attribute.

Parameters
attributeThe requested-address-family attribute.

◆ setRequestedTransport()

void fm.liveswitch.stun.Message.setRequestedTransport ( fm.liveswitch.stun.turn.RequestedTransportAttribute  attribute)

Sets the requested-transport attribute.

Parameters
attributeThe requested-transport attribute.

◆ setReservationToken()

void fm.liveswitch.stun.Message.setReservationToken ( fm.liveswitch.stun.turn.ReservationTokenAttribute  attribute)

Sets the reservation-token attribute.

Parameters
attributeThe reservation-token attribute.

◆ setSoftware()

void fm.liveswitch.stun.Message.setSoftware ( fm.liveswitch.stun.SoftwareAttribute  attribute)

Set the software attribute.

Parameters
attributeThe software attribute.

◆ setTransactionTransmitCounter()

void fm.liveswitch.stun.Message.setTransactionTransmitCounter ( fm.liveswitch.stun.TransactionTransmitCounterAttribute  attribute)

Set the transaction-transmit-counter attribute.

Parameters
attributeThe transaction-transmit-counter attribute.

◆ setUnknownAttributes()

void fm.liveswitch.stun.Message.setUnknownAttributes ( fm.liveswitch.stun.UnknownAttributesAttribute  attribute)

Set the unknown-attributes attribute.

Parameters
attributeThe unknown-attributes attribute.

◆ setUseCandidate()

void fm.liveswitch.stun.Message.setUseCandidate ( fm.liveswitch.stun.ice.UseCandidateAttribute  attribute)

Sets the use-candidate attribute.

Parameters
attributeThe use-candidate attribute.

◆ setUsername()

void fm.liveswitch.stun.Message.setUsername ( fm.liveswitch.stun.UsernameAttribute  attribute)

Set the username attribute.

Parameters
attributeThe username attribute.

◆ setXorMappedAddress()

void fm.liveswitch.stun.Message.setXorMappedAddress ( fm.liveswitch.stun.XorMappedAddressAttribute  attribute)

Set the XOR-mapped-address attribute.

Parameters
attributeThe XOR-mapped-address attribute.

◆ setXorPeerAddress()

void fm.liveswitch.stun.Message.setXorPeerAddress ( fm.liveswitch.stun.turn.XorPeerAddressAttribute  attribute)

Sets the XOR-peer-address attribute.

Parameters
attributeThe XOR-peer-address attribute.

◆ setXorRelayedAddress()

void fm.liveswitch.stun.Message.setXorRelayedAddress ( fm.liveswitch.stun.turn.XorRelayedAddressAttribute  attribute)

Sets the XOR-relayed-address attribute.

Parameters
attributeThe XOR-relayed-address attribute.

◆ writeTo() [1/3]

void fm.liveswitch.stun.Message.writeTo ( fm.liveswitch.DataBuffer  buffer)

Writes the message to a data buffer.

Parameters
bufferThe buffer.

◆ writeTo() [2/3]

void fm.liveswitch.stun.Message.writeTo ( fm.liveswitch.DataBuffer  buffer,
int  offset 
)

Writes the message to a data buffer.

Parameters
bufferThe buffer.
offsetThe offset.

◆ writeTo() [3/3]

void fm.liveswitch.stun.Message.writeTo ( fm.liveswitch.DataBuffer  buffer,
int  offset,
fm.liveswitch.IntegerHolder  offsetPlus 
)

Writes the message to a data buffer.

Parameters
bufferThe buffer.
offsetThe offset.
offsetPlusThe offset plus the value length.