Package org.linphone.core
Interface Transports
public interface Transports
SIP transports & ports configuration object.
Indicates which transport among UDP, TCP, TLS and DTLS should be enabled and if
so on which port to listen. You can use special values like
LC_SIP_TRANSPORT_DISABLED (0), LC_SIP_TRANSPORT_RANDOM (-1) and
LC_SIP_TRANSPORT_DONTBIND (-2).
Once configuration is complete, use
This will be saved in configuration file so you don't have to do it each time
the
Indicates which transport among UDP, TCP, TLS and DTLS should be enabled and if
so on which port to listen. You can use special values like
LC_SIP_TRANSPORT_DISABLED (0), LC_SIP_TRANSPORT_RANDOM (-1) and
LC_SIP_TRANSPORT_DONTBIND (-2).
Once configuration is complete, use
Core.setTransports(org.linphone.core.Transports) to apply it.This will be saved in configuration file so you don't have to do it each time
the
Core starts. -
Method Summary
Modifier and TypeMethodDescriptionintGets the DTLS port in theTransportsobject.longGets the native pointer used by this class to make native method calls.intGets the TCP port in theTransportsobject.intGets the TLS port in theTransportsobject.intGets the UDP port in theTransportsobject.Gets the object stored in this object user's datavoidsetDtlsPort(int port) Sets the DTLS port in theTransportsobject.voidsetTcpPort(int port) Sets the TCP port in theTransportsobject.voidsetTlsPort(int port) Sets the TLS port in theTransportsobject.voidsetUdpPort(int port) Sets the UDP port in theTransportsobject.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getDtlsPort
int getDtlsPort()- Returns:
- the DTLS port
-
setDtlsPort
void setDtlsPort(int port) - Parameters:
port- the DTLS port
-
getTcpPort
int getTcpPort()- Returns:
- the TCP port
-
setTcpPort
void setTcpPort(int port) - Parameters:
port- the TCP port
-
getTlsPort
int getTlsPort()- Returns:
- the TLS port
-
setTlsPort
void setTlsPort(int port) - Parameters:
port- the TLS port
-
getUdpPort
int getUdpPort()- Returns:
- the UDP port
-
setUdpPort
void setUdpPort(int port) - Parameters:
port- the UDP port
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-