|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.turn.server.TcpTurnServer
public class TcpTurnServer
Server for processing TURN TCP messages.
| Constructor Summary | |
|---|---|
TcpTurnServer()
Creates a new TCP TURN server. |
|
TcpTurnServer(TurnClientManager turnClientManager)
Creates a new TCP TURN server. |
|
| Method Summary | |
|---|---|
int |
getTurnPort()
Accessor for the port the TURN server is running on. |
void |
serviceActivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
|
void |
serviceDeactivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
|
void |
sessionCreated(org.littleshoot.mina.common.IoSession session)
|
void |
sessionDestroyed(org.littleshoot.mina.common.IoSession session)
|
void |
start()
Starts the server. |
void |
stop()
Stops the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TcpTurnServer()
public TcpTurnServer(TurnClientManager turnClientManager)
turnClientManager - The class that manages TURN clients.| Method Detail |
|---|
public void start()
throws IOException
TurnServer
start in interface TurnServerIOException - If we cannot start the server for any reason.public void stop()
TurnServer
stop in interface TurnServer
public void serviceActivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
serviceActivated in interface org.littleshoot.mina.common.IoServiceListener
public void serviceDeactivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
serviceDeactivated in interface org.littleshoot.mina.common.IoServiceListenerpublic void sessionCreated(org.littleshoot.mina.common.IoSession session)
sessionCreated in interface org.littleshoot.mina.common.IoServiceListenerpublic void sessionDestroyed(org.littleshoot.mina.common.IoSession session)
sessionDestroyed in interface org.littleshoot.mina.common.IoServiceListenerpublic int getTurnPort()
TcpTurnServerMBean
getTurnPort in interface TcpTurnServerMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||