|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StunClient
Interface for making STUN client requests.
| Method Summary | |
|---|---|
void |
addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
|
void |
connect()
|
org.littleshoot.stun.stack.message.StunMessage |
write(org.littleshoot.stun.stack.message.BindingRequest request,
InetSocketAddress remoteAddress)
Writes a STUN binding request. |
org.littleshoot.stun.stack.message.StunMessage |
write(org.littleshoot.stun.stack.message.BindingRequest request,
InetSocketAddress remoteAddress,
long rto)
Writes a STUN binding request with the RTO value used for retransmissions explicitly set. |
| Methods inherited from interface org.littleshoot.stun.stack.StunAddressProvider |
|---|
close, getHostAddress, getRelayAddress, getServerReflexiveAddress, getStunServerAddress |
| Method Detail |
|---|
org.littleshoot.stun.stack.message.StunMessage write(org.littleshoot.stun.stack.message.BindingRequest request,
InetSocketAddress remoteAddress)
throws IOException
request - The STUN binding request.remoteAddress - The address to send the request to.
IOException - If there's an IO error writing the message.
org.littleshoot.stun.stack.message.StunMessage write(org.littleshoot.stun.stack.message.BindingRequest request,
InetSocketAddress remoteAddress,
long rto)
throws IOException
request - The STUN binding request.remoteAddress - The address to send the request to.rto - The value to use for RTO when calculating retransmission
times. Note this only applies to UDP.
IOException - If there's an IO error writing the message.void addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
void connect()
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||