| |
|
| java.lang.Object org.jivesoftware.openfire.container.BasicModule org.jivesoftware.openfire.stun.STUNService
STUNService | public class STUNService extends BasicModule (Code) | | STUN server and service module. It provides address discovery for p2p sessions to be
used for media transmission and receiving of UDP packets. It's especially useful for
clients behind NAT devices.
author: Thiago Camargo |
STUNService | public STUNService()(Code) | | Constructs a new STUN Service
|
destroy | public void destroy()(Code) | | |
getPrimaryAddress | public String getPrimaryAddress()(Code) | | Get the primary Address used by the STUN server
primary Address used by the STUN server |
getPrimaryPort | public int getPrimaryPort()(Code) | | Get the primary Port used by the STUN server
primary Port used by the STUN server |
getSecondaryAddress | public String getSecondaryAddress()(Code) | | Get the secondary Address used by the STUN server
secondary Address used by the STUN server |
getSecondaryPort | public int getSecondaryPort()(Code) | | Get the secondary Port used by the STUN server
secondary Port used by the STUN server |
isEnabled | public boolean isEnabled()(Code) | | Returns true if the service is enabled.
enabled |
isLocalEnabled | public boolean isLocalEnabled()(Code) | | Returns true if the local STUN server is enabled.
enabled |
removeExternalServer | public void removeExternalServer(int index)(Code) | | |
setEnabled | public void setEnabled(boolean enabled, boolean localEnabled)(Code) | | Set the service enable status.
Parameters: enabled - boolean to enable or disable Parameters: localEnabled - local Server enable or disable |
setLocalEnabled | public void setLocalEnabled(boolean enabled)(Code) | | Set the Local STUN Server enable status.
Parameters: enabled - boolean to enable or disable |
start | public void start()(Code) | | |
|
|
|