Package 

Class GoogleRelayedCandidateDelegate

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      GoogleRelayedCandidateDelegate(GoogleTurnCandidateHarvest turnCandidateHarvest, String username) Initializes a new GoogleRelayedCandidateDatagramSocket instance which is to be the socket of a specific RelayedCandidate harvested by a specific TurnCandidateHarvest.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void close() Closes this datagram socket.
      void handleMessageEvent(StunMessageEvent e) Notifies this MessageEventHandler that a specific STUN message has been received, parsed and is ready for delivery.
      boolean processErrorOrFailure(Response response, Request request) Notifies this GoogleRelayedCandidateDatagramSocket that a specific Request it has sent has either failed or received a STUN error Response.
      void processSuccess(Response response, Request request) Notifies this GoogleRelayedCandidateDatagramSocket that a specific Request it has sent has received a STUN success Response.
      void processResponse(StunResponseEvent response) Dispatch the specified response.
      void processTimeout(StunTimeoutEvent event) Notifies this collector that no response had been received after repeated retransmissions of the original request (as described by rfc3489) and that the request should be considered unanswered.
      void receive(DatagramPacket p) Receives a datagram packet from this socket.
      void send(DatagramPacket p) Sends a datagram packet from this socket.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GoogleRelayedCandidateDelegate

        GoogleRelayedCandidateDelegate(GoogleTurnCandidateHarvest turnCandidateHarvest, String username)
        Initializes a new GoogleRelayedCandidateDatagramSocket instance which is to be the socket of a specific RelayedCandidate harvested by a specific TurnCandidateHarvest.
        Parameters:
        turnCandidateHarvest - the TurnCandidateHarvest which has harvested relayedCandidate
        username - username
    • Method Detail

      • close

         void close()

        Closes this datagram socket.

      • handleMessageEvent

         void handleMessageEvent(StunMessageEvent e)

        Notifies this MessageEventHandler that a specific STUN message has been received, parsed and is ready for delivery. GoogleRelayedCandidateDatagramSocket handles STUN indications sent from the associated TURN server and received at the associated local TransportAddress.

        Parameters:
        e - a StunMessageEvent which encapsulates the received STUN message
      • processErrorOrFailure

         boolean processErrorOrFailure(Response response, Request request)

        Notifies this GoogleRelayedCandidateDatagramSocket that a specific Request it has sent has either failed or received a STUN error Response.

        Parameters:
        response - the Response which responds to request
        request - the Request sent by this instance to which response responds
      • processSuccess

         void processSuccess(Response response, Request request)

        Notifies this GoogleRelayedCandidateDatagramSocket that a specific Request it has sent has received a STUN success Response.

        Parameters:
        response - the Response which responds to request
        request - the Request sent by this instance to which response responds
      • processTimeout

         void processTimeout(StunTimeoutEvent event)

        Notifies this collector that no response had been received after repeated retransmissions of the original request (as described by rfc3489) and that the request should be considered unanswered.

        Parameters:
        event - the StunTimeoutEvent containing a reference to the transaction that has just failed.
      • receive

         void receive(DatagramPacket p)

        Receives a datagram packet from this socket. When this method returns, the DatagramPacket's buffer is filled with the data received. The datagram packet also contains the sender's IP address, and the port number on the sender's machine.

        Parameters:
        p - the DatagramPacket into which to place the incoming data
      • send

         void send(DatagramPacket p)

        Sends a datagram packet from this socket. The DatagramPacket includes information indicating the data to be sent, its length, the IP address of the remote host, and the port number on the remote host.

        Parameters:
        p - the DatagramPacket to be sent