Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::SocketPair Class Reference

#include <socket_pair.h>

Collaboration diagram for jami::SocketPair:
Collaboration graph

Public Member Functions

void closeSockets ()
 
MediaIOHandlecreateIOContext (const uint16_t mtu)
 
void createSRTP (const char *out_suite, const char *out_params, const char *in_suite, const char *in_params)
 
double getLastLatency ()
 
std::list< rtcpREMBHeadergetRtcpREMB ()
 
std::list< rtcpRRHeadergetRtcpRR ()
 
void interrupt ()
 
uint16_t lastSeqValOut ()
 
void openSockets (const char *uri, int localPort)
 
void setPacketLossCallback (std::function< void(void)> cb)
 
void setReadBlockingMode (bool blocking)
 
void setRtpDelayCallback (std::function< void(int, int)> cb)
 
 SocketPair (const char *uri, int localPort)
 
 SocketPair (std::unique_ptr< dhtnet::IceSocket > rtp_sock, std::unique_ptr< dhtnet::IceSocket > rtcp_sock)
 
void stopSendOp (bool state=true)
 
bool waitForRTCP (std::chrono::seconds interval)
 
int writeData (uint8_t *buf, int buf_size)
 
 ~SocketPair ()
 

Detailed Description

Definition at line 129 of file socket_pair.h.

Constructor & Destructor Documentation

◆ SocketPair() [1/2]

jami::SocketPair::SocketPair ( const char uri,
int  localPort 
)

Definition at line 181 of file socket_pair.cpp.

References openSockets().

Here is the call graph for this function:

◆ SocketPair() [2/2]

jami::SocketPair::SocketPair ( std::unique_ptr< dhtnet::IceSocket >  rtp_sock,
std::unique_ptr< dhtnet::IceSocket >  rtcp_sock 
)

Definition at line 186 of file socket_pair.cpp.

References jami::emitSignal(), and JAMI_DBG.

Here is the call graph for this function:

◆ ~SocketPair()

jami::SocketPair::~SocketPair ( )

Definition at line 209 of file socket_pair.cpp.

References closeSockets(), interrupt(), and JAMI_DBG.

Here is the call graph for this function:

Member Function Documentation

◆ closeSockets()

void jami::SocketPair::closeSockets ( )

Definition at line 322 of file socket_pair.cpp.

References jami::emitSignal(), and jami::strErr().

Referenced by openSockets(), and ~SocketPair().

Here is the call graph for this function:

◆ createIOContext()

MediaIOHandle * jami::SocketPair::createIOContext ( const uint16_t  mtu)

Definition at line 366 of file socket_pair.cpp.

References jami::emitSignal(), jami::SRTP_OVERHEAD, and jami::UDP_HEADER_SIZE.

Here is the call graph for this function:

◆ createSRTP()

void jami::SocketPair::createSRTP ( const char out_suite,
const char out_params,
const char in_suite,
const char in_params 
)

Definition at line 285 of file socket_pair.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getLastLatency()

double jami::SocketPair::getLastLatency ( )

Definition at line 687 of file socket_pair.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getRtcpREMB()

std::list< rtcpREMBHeader > jami::SocketPair::getRtcpREMB ( )

Definition at line 278 of file socket_pair.cpp.

◆ getRtcpRR()

std::list< rtcpRRHeader > jami::SocketPair::getRtcpRR ( )

Definition at line 271 of file socket_pair.cpp.

◆ interrupt()

void jami::SocketPair::interrupt ( )

Definition at line 294 of file socket_pair.cpp.

References JAMI_WARN.

Referenced by ~SocketPair().

◆ lastSeqValOut()

uint16_t jami::SocketPair::lastSeqValOut ( )

Definition at line 751 of file socket_pair.cpp.

References JAMI_ERR.

◆ openSockets()

void jami::SocketPair::openSockets ( const char uri,
int  localPort 
)

Definition at line 331 of file socket_pair.cpp.

References closeSockets(), jami::emitSignal(), JAMI_DBG, JAMI_ERR, JAMI_WARN, and jami::udp_socket_create().

Referenced by SocketPair().

Here is the call graph for this function:

◆ setPacketLossCallback()

void jami::SocketPair::setPacketLossCallback ( std::function< void(void)>  cb)
inline

Definition at line 178 of file socket_pair.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setReadBlockingMode()

void jami::SocketPair::setReadBlockingMode ( bool  blocking)

Definition at line 307 of file socket_pair.cpp.

References jami::emitSignal(), and JAMI_DBG.

Here is the call graph for this function:

◆ setRtpDelayCallback()

void jami::SocketPair::setRtpDelayCallback ( std::function< void(int, int)>  cb)

Definition at line 696 of file socket_pair.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ stopSendOp()

void jami::SocketPair::stopSendOp ( bool  state = true)

Definition at line 316 of file socket_pair.cpp.

◆ waitForRTCP()

bool jami::SocketPair::waitForRTCP ( std::chrono::seconds  interval)

Definition at line 217 of file socket_pair.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ writeData()

int jami::SocketPair::writeData ( uint8_t buf,
int  buf_size 
)

Definition at line 575 of file socket_pair.cpp.

References jami::emitSignal(), jami::ff_network_wait_fd(), and RTP_PT_IS_RTCP.

Here is the call graph for this function:

The documentation for this class was generated from the following files: