org.littleshoot.util
Interface SessionSocketListener

All Known Implementing Classes:
RelayingSocketHandler

public interface SessionSocketListener

General interface for classes that handle sockets with IDs.


Method Summary
 void onSocket(String id, Socket sock)
          Notifies the listener of the socket along with the associated ID.
 void reconnected()
          Called when we've lost the connection to the signaling server and have reconnected.
 

Method Detail

onSocket

void onSocket(String id,
              Socket sock)
              throws IOException
Notifies the listener of the socket along with the associated ID.

Parameters:
id - The ID for the socket.
sock - The Socket.
Throws:
IOException - If there's an IO error reading the socket data or writing a response.

reconnected

void reconnected()
Called when we've lost the connection to the signaling server and have reconnected.



Copyright © 2011-2013 LittleShoot. All Rights Reserved.