dodo  0.0.1
A C++ library to create containerized Linux services
tcplistener.hpp File Reference
#include <atomic>
#include <condition_variable>
#include <functional>
#include <map>
#include <queue>
#include <set>
#include <stdint.h>
#include <sys/epoll.h>
#include <sys/resource.h>
#include <sys/socket.h>
#include <yaml-cpp/yaml.h>
#include "common/exception.hpp"
#include "common/bytes.hpp"
#include "network/socket.hpp"
#include "threads/mutex.hpp"
#include "threads/thread.hpp"
Include dependency graph for tcplistener.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  dodo::network::TCPConnectionData
 Class to track a connection. More...
 
class  dodo::network::TCPListener
 The TCPListener listens, accepts connections and generates socket events to produce TCP work to a pool of TCPServer worker objects. More...
 
struct  dodo::network::TCPListener::Params
 Parameters affecting TCPListener behavior. More...
 
struct  dodo::network::TCPListener::SocketWork
 BaseSocket socket and state pair. More...
 
struct  dodo::network::TCPListener::Stats
 Load statisics. More...
 

Namespaces

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

Functions

bool dodo::network::operator& (const TCPListener::SockState &self, const TCPListener::SockState &other)
 Bitwise & on SocketWork. More...
 
const dodo::common::Putsdodo::network::operator<< (const dodo::common::Puts &os, TCPListener::SockState state)
 Nice-write to a Puts. More...
 
TCPListener::SockState & dodo::network::operator^= (TCPListener::SockState &self, TCPListener::SockState other)
 Bitwise ^= on SocketWork. More...
 
TCPListener::SockState & dodo::network::operator|= (TCPListener::SockState &self, TCPListener::SockState other)
 Bitwise |= on SocketWork. More...
 

Detailed Description

Defines the dodo::network::TCPListener class.

Definition in file tcplistener.hpp.