org.elkoserver.foundation.net
Class RTCPSessionConnection

java.lang.Object
  extended by org.elkoserver.foundation.net.ConnectionBase
      extended by org.elkoserver.foundation.net.RTCPSessionConnection
All Implemented Interfaces:
Connection

public class RTCPSessionConnection
extends ConnectionBase

An implementation of Connection that virtualizes a continuous message session out of a series of potentially transient TCP connections.


Field Summary
static boolean TheDebugSessionsFlag
          Flag to bypass unguessable ID generation for debugging purposes.
 
Fields inherited from class org.elkoserver.foundation.net.ConnectionBase
theCloseMarker
 
Method Summary
 void close()
          Shut down the connection.
 void sendMsg(Object message)
          Send a message to the other end of the connection.
 void setDebugMode(boolean mode)
          Turn debug features for this connection on or off.
 String toString()
          Get a printable String representation of this connection.
 
Methods inherited from class org.elkoserver.foundation.net.ConnectionBase
connectionDied, enqueueHandlerFactory, enqueueReceivedMessage, id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TheDebugSessionsFlag

public static boolean TheDebugSessionsFlag
Flag to bypass unguessable ID generation for debugging purposes.

Method Detail

close

public void close()
Shut down the connection.


sendMsg

public void sendMsg(Object message)
Send a message to the other end of the connection.

Parameters:
message - The message to be sent. In this version, this must be a String or a JSONLiteral.

setDebugMode

public void setDebugMode(boolean mode)
Turn debug features for this connection on or off. In the case of an RTCP session, debug mode involves using longer timeouts so that things work on a human time scale when debugging.

Specified by:
setDebugMode in interface Connection
Overrides:
setDebugMode in class ConnectionBase
Parameters:
mode - If true, turn debug mode on; if false, turn it off.

toString

public String toString()
Get a printable String representation of this connection.

Overrides:
toString in class Object
Returns:
a printable representation of this connection.