Ring Daemon 16.0.0
Loading...
Searching...
No Matches
socket_pair.cpp File Reference
Include dependency graph for socket_pair.cpp:

Go to the source code of this file.

Classes

class  jami::SRTPProtoContext
 

Namespaces

namespace  jami
 

Macros

#define Swap2Bytes(val)   ((((val) >> 8) & 0x00FF) | (((val) << 8) & 0xFF00))
 
#define Swap4Bytes(val)
 
#define Swap8Bytes(val)
 

Enumerations

enum class  jami::DataType : unsigned { jami::RTP = 1 << 0 , jami::RTCP = 1 << 1 }
 

Functions

static int jami::ff_network_wait_fd (int fd)
 
static int jami::udp_socket_create (int family, int port)
 

Variables

static constexpr unsigned jami::MINIMUM_RTP_HEADER_SIZE = 16
 
static constexpr int jami::NET_POLL_TIMEOUT = 100
 
static constexpr uint32_t jami::RTCP_RR_FRACTION_MASK = 0xFF000000
 
static constexpr int jami::RTP_MAX_PACKET_LENGTH = 2048
 
static constexpr auto jami::SRTP_OVERHEAD = 10
 
static constexpr auto jami::UDP_HEADER_SIZE = 8
 

Macro Definition Documentation

◆ Swap2Bytes

#define Swap2Bytes (   val)    ((((val) >> 8) & 0x00FF) | (((val) << 8) & 0xFF00))

Definition at line 61 of file socket_pair.cpp.

◆ Swap4Bytes

#define Swap4Bytes (   val)
Value:
((((val) >> 24) & 0x000000FF) | (((val) >> 8) & 0x0000FF00) | (((val) << 8) & 0x00FF0000) \
| (((val) << 24) & 0xFF000000))

Definition at line 64 of file socket_pair.cpp.

◆ Swap8Bytes

#define Swap8Bytes (   val)
Value:
((((val) >> 56) & 0x00000000000000FF) | (((val) >> 40) & 0x000000000000FF00) \
| (((val) >> 24) & 0x0000000000FF0000) | (((val) >> 8) & 0x00000000FF000000) \
| (((val) << 8) & 0x000000FF00000000) | (((val) << 24) & 0x0000FF0000000000) \
| (((val) << 40) & 0x00FF000000000000) | (((val) << 56) & 0xFF00000000000000))

Definition at line 69 of file socket_pair.cpp.