Liblinphone
5.3.0
|
SIP transports & ports configuration object. More...
#include <transports.hh>
Public Member Functions | |
LINPHONECXX_PUBLIC | Transports (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphoneTransports * | cPtr () |
LINPHONECXX_PUBLIC int | getDtlsPort () const |
Gets the DTLS port in the Transports object. More... | |
LINPHONECXX_PUBLIC void | setDtlsPort (int port) |
Sets the DTLS port in the Transports object. More... | |
LINPHONECXX_PUBLIC int | getTcpPort () const |
Gets the TCP port in the Transports object. More... | |
LINPHONECXX_PUBLIC void | setTcpPort (int port) |
Sets the TCP port in the Transports object. More... | |
LINPHONECXX_PUBLIC int | getTlsPort () const |
Gets the TLS port in the Transports object. More... | |
LINPHONECXX_PUBLIC void | setTlsPort (int port) |
Sets the TLS port in the Transports object. More... | |
LINPHONECXX_PUBLIC int | getUdpPort () const |
Gets the UDP port in the Transports object. More... | |
LINPHONECXX_PUBLIC void | setUdpPort (int port) |
Sets the UDP port in the Transports object. More... | |
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 Core::setTransports() to apply it. This will be saved in configuration file so you don't have to do it each time the Core starts.
LINPHONECXX_PUBLIC int linphone::Transports::getDtlsPort | ( | ) | const |
Gets the DTLS port in the Transports object.
LINPHONECXX_PUBLIC int linphone::Transports::getTcpPort | ( | ) | const |
Gets the TCP port in the Transports object.
LINPHONECXX_PUBLIC int linphone::Transports::getTlsPort | ( | ) | const |
Gets the TLS port in the Transports object.
LINPHONECXX_PUBLIC int linphone::Transports::getUdpPort | ( | ) | const |
Gets the UDP port in the Transports object.
LINPHONECXX_PUBLIC void linphone::Transports::setDtlsPort | ( | int | port | ) |
Sets the DTLS port in the Transports object.
port | the DTLS port |
LINPHONECXX_PUBLIC void linphone::Transports::setTcpPort | ( | int | port | ) |
Sets the TCP port in the Transports object.
port | the TCP port |
LINPHONECXX_PUBLIC void linphone::Transports::setTlsPort | ( | int | port | ) |
Sets the TLS port in the Transports object.
port | the TLS port |
LINPHONECXX_PUBLIC void linphone::Transports::setUdpPort | ( | int | port | ) |
Sets the UDP port in the Transports object.
port | the UDP port |