Intra2net AG

libt2n::group_command_server< COMMAND_GROUP > Class Template Reference

server handling group of incoming commands More...

#include <command_server.hxx>

Inheritance diagram for libt2n::group_command_server< COMMAND_GROUP >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 group_command_server (server &_s)
void handle (long long usec_timeout=-1, long long *usec_timeout_remaining=NULL)
 handle incoming commands
void send_hello (unsigned int conn_id)
 send a hello message to a new connection
std::ostream * get_logstream (log_level_values level)

Private Member Functions

virtual commandcast_command (command *input)

Detailed Description

template<class COMMAND_GROUP>
class libt2n::group_command_server< COMMAND_GROUP >

server handling group of incoming commands

the template must be derived from libt2n::command.


Constructor & Destructor Documentation

template<class COMMAND_GROUP>
libt2n::group_command_server< COMMAND_GROUP >::group_command_server ( server _s  )  [inline]

Member Function Documentation

template<class COMMAND_GROUP>
virtual command* libt2n::group_command_server< COMMAND_GROUP >::cast_command ( command input  )  [inline, private, virtual]

Reimplemented from libt2n::command_server.

std::ostream* libt2n::command_server::get_logstream ( log_level_values  level  )  [inline, inherited]
void libt2n::command_server::handle ( long long  usec_timeout = -1,
long long *  usec_timeout_remaining = NULL 
) [inherited]

handle incoming commands

Parameters:
[in,out] usec_timeout wait until new data is found, max timeout usecs. -1: wait endless, 0: instant return
[out] usec_timeout_remaining microseconds from the timeout that were not used

References libt2n::server::cleanup(), libt2n::connection::close(), libt2n::error, EXCEPTIONSTREAM, libt2n::server::fill_buffer(), libt2n::server::get_connection(), libt2n::server::get_packet(), libt2n::command_server::guard_handle, libt2n::command_server::handle_packet(), and libt2n::command_server::s.

void libt2n::command_server::send_hello ( unsigned int  conn_id  )  [inherited]

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

Generated on 13 May 2015 by  doxygen 1.6.1
© Intra2net AG 2024 | Legal | Contact