|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TurnClient
Interface for the local TURN client.
| Method Summary | |
|---|---|
void |
close()
Closes this client's connection to the TURN server. |
InetSocketAddress |
getMappedAddress()
Accesses the MAPPED ADDRESS attribute returned from the TURN server. |
InetSocketAddress |
getRelayAddress()
Accesses the allocated address for this TURN client on the TURN server. |
InetAddress |
getStunServerAddress()
Gets the address of the STUN server this TURN client is using. |
boolean |
isConnected()
Returns whether or not the TURN client is connected. |
void |
sendConnectRequest(InetSocketAddress remoteAddress)
Tells the client to send a Connect Request for the specified remote address, telling the TURN server to attempt to connect to the specified address and to allow incoming connections from that address. |
| Methods inherited from interface org.lastbamboo.common.stun.client.StunClient |
|---|
addIoServiceListener, connect, write, write |
| Methods inherited from interface org.littleshoot.stun.stack.StunAddressProvider |
|---|
getHostAddress, getServerReflexiveAddress |
| Method Detail |
|---|
InetSocketAddress getRelayAddress()
getRelayAddress in interface org.littleshoot.stun.stack.StunAddressProvidervoid sendConnectRequest(InetSocketAddress remoteAddress)
remoteAddress - The address of the remote host.void close()
close in interface org.littleshoot.stun.stack.StunAddressProviderInetSocketAddress getMappedAddress()
InetAddress getStunServerAddress()
getStunServerAddress in interface org.littleshoot.stun.stack.StunAddressProviderboolean isConnected()
true if the TURN client is connected to its server,
otherwise false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||