Subordination
A framework for distributed programming
Public Types | Public Member Functions | List of all members
sbn::local_server< K, S, R > Class Template Reference
Inheritance diagram for sbn::local_server< K, S, R >:
[legend]
Collaboration diagram for sbn::local_server< K, S, R >:
[legend]

Public Types

typedef sys::ipv4_address addr_type
 
typedef K kernel_type
 
typedef S socket_type
 
typedef R router_type
 
typedef sys::interface_address< addr_type > ifaddr_type
 
typedef ifaddr_type::rep_type id_type
 
typedef id_type counter_type
 
typedef socket_pipeline< K, S, R > this_type
 
- Public Types inherited from sbn::pipeline_base
typedef std::chrono::system_clock clock_type
 
typedef clock_type::time_point time_point
 
typedef clock_type::duration duration
 

Public Member Functions

 local_server (const ifaddr_type &interface_address, sys::port_type port, this_type &ppl)
 
 local_server (const local_server &)=delete
 
local_serveroperator= (const local_server &)=delete
 
local_serveroperator= (local_server &&)=default
 
const ifaddr_type interface_address () const noexcept
 
const sys::socket_address & socket_address () const noexcept
 
sys::fd_type fd () const noexcept
 
const socket_type & socket () const noexcept
 
socket_type & socket () noexcept
 
id_type generate_id () noexcept
 
void handle (const sys::epoll_event &ev) override
 
void write (std::ostream &out) const override
 
void remove (sys::event_poller &poller) override
 Called when the handler is removed from the poller.
 
- Public Member Functions inherited from sbn::basic_handler
virtual void flush ()
 Flush dirty buffers (if needed).
 
- Public Member Functions inherited from sbn::pipeline_base
 pipeline_base (pipeline_base &&)=default
 
 pipeline_base (const pipeline_base &)=delete
 
pipeline_baseoperator= (pipeline_base &)=delete
 
void setstate (pipeline_state rhs) noexcept
 
pipeline_state state () const noexcept
 
bool is_starting () const noexcept
 
bool has_started () const noexcept
 
bool is_running () const noexcept
 
bool is_stopping () const noexcept
 
bool has_stopped () const noexcept
 
time_point start_time_point () const noexcept
 
bool has_start_time_point () const noexcept
 
const char * name () const noexcept
 
void set_name (const char *rhs) noexcept
 
void set_number (unsigned rhs) noexcept
 
template<class ... Args>
void log (const Args &... args) const
 
void log_error (const std::exception &err) const
 

Additional Inherited Members

- Protected Attributes inherited from sbn::pipeline_base
volatile pipeline_state _state = pipeline_state::initial
 
time_point _start = time_point(duration::zero())
 
const char * _name = "ppl"
 
unsigned _number = 0
 

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