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 TypeMethodDescriptionint
Gets the DTLS port in theTransports
object.long
Gets the native pointer used by this class to make native method calls.int
Gets the TCP port in theTransports
object.int
Gets the TLS port in theTransports
object.int
Gets the UDP port in theTransports
object.Gets the object stored in this object user's datavoid
setDtlsPort
(int port) Sets the DTLS port in theTransports
object.void
setTcpPort
(int port) Sets the TCP port in theTransports
object.void
setTlsPort
(int port) Sets the TLS port in theTransports
object.void
setUdpPort
(int port) Sets the UDP port in theTransports
object.void
setUserData
(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()
-