Agora  1.2.0
Agora project
mac_sender.cc File Reference

Implementation file for the simple mac sender class. More...

#include "mac_sender.h"
#include <csignal>
#include <thread>
#include <utility>
#include "datatype_conversion.h"
#include "file_receiver.h"
#include "gettime.h"
#include "logger.h"
#include "message.h"
#include "udp_client.h"
#include "video_receiver.h"
Include dependency graph for mac_sender.cc:

Functions

static std::atomic< bool > keep_running (true)
 
static std::atomic< size_t > num_workers_ready_atomic (0)
 
void InterruptHandler (int)
 
void DelayTicks (uint64_t start, uint64_t ticks)
 

Variables

static const std::string kMacSendFromAddress = "127.0.0.1"
 
static constexpr uint16_t kMacSendFromPort = 0
 
static constexpr bool kDebugPrintSender = false
 
static constexpr size_t kFrameLoadAdvance = 10
 
static constexpr size_t kBufferInit = 10
 
static constexpr size_t kTxBufferElementAlignment = 64
 
static constexpr size_t kSlowStartThresh1 = kFrameWnd
 
static constexpr size_t kSlowStartThresh2 = (kFrameWnd * 4)
 
static constexpr size_t kSlowStartMulStage1 = 32
 
static constexpr size_t kSlowStartMulStage2 = 8
 
static constexpr size_t kMasterThreadId = 0
 

Detailed Description

Implementation file for the simple mac sender class.

Function Documentation

◆ DelayTicks()

void DelayTicks ( uint64_t  start,
uint64_t  ticks 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InterruptHandler()

void InterruptHandler ( int  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ keep_running()

static std::atomic<bool> keep_running ( true  )
static
Here is the caller graph for this function:

◆ num_workers_ready_atomic()

static std::atomic<size_t> num_workers_ready_atomic ( )
static
Here is the caller graph for this function:

Variable Documentation

◆ kBufferInit

constexpr size_t kBufferInit = 10
staticconstexpr

◆ kDebugPrintSender

constexpr bool kDebugPrintSender = false
staticconstexpr

◆ kFrameLoadAdvance

constexpr size_t kFrameLoadAdvance = 10
staticconstexpr

◆ kMacSendFromAddress

const std::string kMacSendFromAddress = "127.0.0.1"
static

◆ kMacSendFromPort

constexpr uint16_t kMacSendFromPort = 0
staticconstexpr

◆ kMasterThreadId

constexpr size_t kMasterThreadId = 0
staticconstexpr

◆ kSlowStartMulStage1

constexpr size_t kSlowStartMulStage1 = 32
staticconstexpr

◆ kSlowStartMulStage2

constexpr size_t kSlowStartMulStage2 = 8
staticconstexpr

◆ kSlowStartThresh1

constexpr size_t kSlowStartThresh1 = kFrameWnd
staticconstexpr

◆ kSlowStartThresh2

constexpr size_t kSlowStartThresh2 = (kFrameWnd * 4)
staticconstexpr

◆ kTxBufferElementAlignment

constexpr size_t kTxBufferElementAlignment = 64
staticconstexpr