dodo  0.0.1
A C++ library to create containerized Linux services
tcplistener.cpp File Reference
#include <network/tcplistener.hpp>
#include <network/tcpserver.hpp>
#include <common/logger.hpp>
#include <common/util.hpp>
#include <algorithm>
#include <map>
Include dependency graph for tcplistener.cpp:

Go to the source code of this file.

Data Structures

class  dodo::network::TCPListenerTimer
 Updates the attribute now_ in the TCPListener at a regular interval to avoid excessive number of calls to gettimeofday in the TCPListener event loop where time high time precision is of lesser importance. More...
 

Namespaces

 dodo
 A C++ platform interface to lean Linux services tailored for containerized deployment.
 
 dodo::network
 Interface for network communication.
 

Variables

const std::string dodo::network::yaml_cycle_max_throttles = "cycle-max-throttles"
 cycle_max_throttles YAML configuration name More...
 
const std::string dodo::network::yaml_listener_sleep_ms = "listener-sleep-ms"
 listener_sleep_ms YAML configuration name More...
 
const std::string dodo::network::yaml_maxconnections = "max-connections"
 maxconnections YAML configuration name More...
 
const std::string dodo::network::yaml_maxqdepth = "max-queue-depth"
 maxqdepth YAML configuration name More...
 
const std::string dodo::network::yaml_maxservers = "max-servers"
 maxservers YAML configuration name More...
 
const std::string dodo::network::yaml_minservers = "min-servers"
 minservers YAML configuration name More...
 
const std::string dodo::network::yaml_pollbatch = "poll-batch"
 pollbatch YAML configuration name More...
 
const std::string dodo::network::yaml_receive_timeout_seconds = "receive-timeout-seconds"
 yaml_receive_timeout_seconds YAML configuration name More...
 
const std::string dodo::network::yaml_recvbufsz = "receive-buffer"
 recvbufsz YAML configuration name More...
 
const std::string dodo::network::yaml_send_timeout_seconds = "send-timeout-seconds"
 yaml_send_timeout_seconds YAML configuration name More...
 
const std::string dodo::network::yaml_sendbufsz = "send-buffer"
 sendbufsz YAML configuration name More...
 
const std::string dodo::network::yaml_server_idle_ttl_s = "server-idle-ttl-s"
 server_idle_ttl_s YAML configuration name More...
 
const std::string dodo::network::yaml_stat_trc_interval_s = "stat-trc-interval-s"
 stat_trc_interval_s YAML configuration name More...
 
const std::string dodo::network::yaml_tcp_keep_alive = "tcp-keep-alive"
 yaml_tcp_keep_alive YAML configuration name More...
 
const std::string dodo::network::yaml_throttle_sleep_us = "throttle-sleep-us"
 throttle_sleep_us YAML configuration name More...
 

Detailed Description

Implements the dodo::network::TCPListener class.

Definition in file tcplistener.cpp.