org.lastbamboo.common.turn.server
Interface TurnClientManager

All Known Implementing Classes:
TurnClientManagerImpl

public interface TurnClientManager

Interface for classes that manage allocated binding for TURN clients. These bindings allow external agents to access TURN clients as if the bindings were there own.


Method Summary
 TurnClient allocateBinding(org.littleshoot.mina.common.IoSession readerWriter)
          Allocates a binding for the specified TURN client that other nodes can use to access it.
 TurnClient getTurnClient(org.littleshoot.mina.common.IoSession readerWriter)
          Accessor for the TURN client handler for the specified TURN client address.
 TurnClient removeBinding(org.littleshoot.mina.common.IoSession readerWriter)
          Removes the TURN client associated with the specified reader/writer instance.
 

Method Detail

allocateBinding

TurnClient allocateBinding(org.littleshoot.mina.common.IoSession readerWriter)
Allocates a binding for the specified TURN client that other nodes can use to access it.

Parameters:
readerWriter - The class for writing data back to the TURN client.
Returns:
The client proxy.

getTurnClient

TurnClient getTurnClient(org.littleshoot.mina.common.IoSession readerWriter)
Accessor for the TURN client handler for the specified TURN client address.

Parameters:
readerWriter - The reader/writer for the client.
Returns:
The TURN client class that handles writing data to the client and accepting incoming connection on the client's behalf.

removeBinding

TurnClient removeBinding(org.littleshoot.mina.common.IoSession readerWriter)
Removes the TURN client associated with the specified reader/writer instance.

Parameters:
readerWriter - The reader/writer to remove.
Returns:
The removed client instance.


Copyright © 2013 LittleShoot. All Rights Reserved.