Public Types | Public Member Functions | Protected Attributes | List of all members
Any_Session Class Referenceabstract

abstract connection handler to process incoming data (independent of protocol) More...

#include <network.h>

Inheritance diagram for Any_Session:
Inheritance graph
[legend]

Public Types

typedef boost::signals2::signal< void(const char *data, const size_t size, Any_Session *writer)> SIG_ON_DATA
 incoming data with "data" of size "size" and handler to write back ("writer") More...
 

Public Member Functions

 Any_Session (SIG_ON_DATA &cb)
 every session needs a data handler More...
 
virtual void write (const std::string &buffer)=0
 write a string to the network connection More...
 
virtual ~Any_Session ()
 

Protected Attributes

SIG_ON_DATAon_data_
 signal handler for incoming data More...
 

Detailed Description

abstract connection handler to process incoming data (independent of protocol)

Definition at line 53 of file network.h.

Member Typedef Documentation

typedef boost::signals2::signal<void (const char *data, const size_t size, Any_Session *writer)> Any_Session::SIG_ON_DATA

incoming data with "data" of size "size" and handler to write back ("writer")

Definition at line 57 of file network.h.

Constructor & Destructor Documentation

Any_Session::Any_Session ( SIG_ON_DATA cb)
inline

every session needs a data handler

Definition at line 60 of file network.h.

virtual Any_Session::~Any_Session ( )
inlinevirtual

Definition at line 65 of file network.h.

Member Function Documentation

virtual void Any_Session::write ( const std::string &  buffer)
pure virtual

write a string to the network connection

Implemented in TCP_Session.

Member Data Documentation

SIG_ON_DATA& Any_Session::on_data_
protected

signal handler for incoming data

Definition at line 72 of file network.h.


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


sick_visionary_t_driver
Author(s): Joshua Hampp
autogenerated on Mon Jun 10 2019 15:09:27