org.lastbamboo.common.turn.http.server
Class ServerDataFeeder
java.lang.Object
org.lastbamboo.common.turn.http.server.ServerDataFeeder
- All Implemented Interfaces:
- EventListener, org.lastbamboo.common.turn.client.TurnClientListener, org.littleshoot.mina.common.IoServiceListener
public class ServerDataFeeder
- extends Object
- implements org.lastbamboo.common.turn.client.TurnClientListener, org.littleshoot.mina.common.IoServiceListener
Class that feeds data received from the TURN server to a locally-running
HTTP server.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerDataFeeder
public ServerDataFeeder(InetSocketAddress serverAddress)
- Creates a new
ServerDataFeeder for feeding data to a local HTTP
server.
- Parameters:
serverAddress - The address of the server to connect to.
onData
public void onData(InetSocketAddress remoteAddress,
org.littleshoot.mina.common.IoSession session,
byte[] data)
- Specified by:
onData in interface org.lastbamboo.common.turn.client.TurnClientListener
onRemoteAddressOpened
public org.littleshoot.mina.common.IoSession onRemoteAddressOpened(InetSocketAddress remoteAddress,
org.littleshoot.mina.common.IoSession ioSession)
- Specified by:
onRemoteAddressOpened in interface org.lastbamboo.common.turn.client.TurnClientListener
onRemoteAddressClosed
public void onRemoteAddressClosed(InetSocketAddress remoteAddress)
- Specified by:
onRemoteAddressClosed in interface org.lastbamboo.common.turn.client.TurnClientListener
serviceActivated
public void serviceActivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
- Specified by:
serviceActivated in interface org.littleshoot.mina.common.IoServiceListener
serviceDeactivated
public void serviceDeactivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
- Specified by:
serviceDeactivated in interface org.littleshoot.mina.common.IoServiceListener
sessionCreated
public void sessionCreated(org.littleshoot.mina.common.IoSession session)
- Specified by:
sessionCreated in interface org.littleshoot.mina.common.IoServiceListener
sessionDestroyed
public void sessionDestroyed(org.littleshoot.mina.common.IoSession session)
- Specified by:
sessionDestroyed in interface org.littleshoot.mina.common.IoServiceListener
close
public void close()
- Specified by:
close in interface org.lastbamboo.common.turn.client.TurnClientListener
Copyright © 2013 LittleShoot. All Rights Reserved.