|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.RelayingSocketHandler
public class RelayingSocketHandler
Socket handler that simply relays data to a server socket.
| Constructor Summary | |
|---|---|
RelayingSocketHandler(InetSocketAddress serverAddress)
Creates a new socket handler. |
|
| Method Summary | |
|---|---|
void |
onSocket(String id,
Socket encryptedSocket)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelayingSocketHandler(InetSocketAddress serverAddress)
port - The port to use for connecting locally.| Method Detail |
|---|
public void onSocket(String id,
Socket encryptedSocket)
throws IOException
SessionSocketListener
onSocket in interface SessionSocketListenerid - The ID for the socket.encryptedSocket - The Socket.
IOException - If there's an IO error reading the socket data or
writing a response.public void reconnected()
SessionSocketListener
reconnected in interface SessionSocketListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||