|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StunServer
Interface for starting a STUN server.
| Method Summary | |
|---|---|
void |
addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
|
void |
close()
|
InetSocketAddress |
getBoundAddress()
Gets the address the server is bound to. |
void |
start()
Starts the server on the default STUN port. |
void |
start(InetSocketAddress bindAddress)
Starts the server, binding to the specified address. |
| Method Detail |
|---|
void start()
throws IOException
IOException - If we cannot bind to the port.
void start(InetSocketAddress bindAddress)
throws IOException
null, this will choose an available port to bind to.
bindAddress - The address to bind to.
IOException - If we cannot bind to the specified address, even
when this is null and we choose it randomly.InetSocketAddress getBoundAddress()
void addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||