cxxtools::bin::RpcServer Class Reference

#include <cxxtools/bin/rpcserver.h>

Inheritance diagram for cxxtools::bin::RpcServer:
cxxtools::ServiceRegistry

Public Types

enum  Runmode {
  Stopped, Starting, Running, Terminating,
  Failed
}

Public Member Functions

 RpcServer (EventLoopBase &eventLoop)
 RpcServer (EventLoopBase &eventLoop, const std::string &ip, unsigned short int port, int backlog=64)
 RpcServer (EventLoopBase &eventLoop, unsigned short int port, int backlog=64)
 ~RpcServer ()
void listen (const std::string &ip, unsigned short int port, int backlog=64)
void listen (unsigned short int port, int backlog=64)
void loadSslCertificateFile (const std::string &certificateFile, const std::string &privateKeyFile=std::string())
void addService (const ServiceRegistry &service)
void addService (const std::string &domain, const ServiceRegistry &service)
unsigned minThreads () const
void minThreads (unsigned m)
unsigned maxThreads () const
void maxThreads (unsigned m)
- Public Member Functions inherited from cxxtools::ServiceRegistry
 ServiceRegistry ()
 ~ServiceRegistry ()
template<typename R >
void registerFunction (const std::string &name, R(*fn)())
template<typename R , typename A1 >
void registerFunction (const std::string &name, R(*fn)(A1))
template<typename R , typename A1 , typename A2 >
void registerFunction (const std::string &name, R(*fn)(A1, A2))
template<typename R , typename A1 , typename A2 , typename A3 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6, A7))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6, A7, A8))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6, A7, A8, A9))
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void registerFunction (const std::string &name, R(*fn)(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10))
template<typename R >
void registerCallable (const std::string &name, const Callable< R > &cb)
template<typename R , typename A1 >
void registerCallable (const std::string &name, const Callable< R, A1 > &cb)
template<typename R , typename A1 , typename A2 >
void registerCallable (const std::string &name, const Callable< R, A1, A2 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6, A7 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8, A9 > &cb)
template<typename R , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void registerCallable (const std::string &name, const Callable< R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10 > &cb)
template<typename R , class C >
void registerMethod (const std::string &name, C &obj, R(C::*method)())
template<typename R , class C , typename A1 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1))
template<typename R , class C , typename A1 , typename A2 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2))
template<typename R , class C , typename A1 , typename A2 , typename A3 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6, A7))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6, A7, A8))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6, A7, A8, A9))
template<typename R , class C , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 , typename A10 >
void registerMethod (const std::string &name, C &obj, R(C::*method)(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10))
ServiceProceduregetProcedure (const std::string &name) const
void releaseProcedure (ServiceProcedure *proc) const
std::vector< std::string > getProcedureNames () const

Public Attributes

Signal< RunmoderunmodeChanged

Friends

class Responder

Additional Inherited Members

- Protected Member Functions inherited from cxxtools::ServiceRegistry
void registerProcedure (const std::string &name, ServiceProcedure *proc)

Member Enumeration Documentation

Enumerator:
Stopped 
Starting 
Running 
Terminating 
Failed 

Constructor & Destructor Documentation

cxxtools::bin::RpcServer::RpcServer ( EventLoopBase eventLoop)
explicit
cxxtools::bin::RpcServer::RpcServer ( EventLoopBase eventLoop,
const std::string &  ip,
unsigned short int  port,
int  backlog = 64 
)
cxxtools::bin::RpcServer::RpcServer ( EventLoopBase eventLoop,
unsigned short int  port,
int  backlog = 64 
)
cxxtools::bin::RpcServer::~RpcServer ( )

Member Function Documentation

void cxxtools::bin::RpcServer::addService ( const ServiceRegistry service)
void cxxtools::bin::RpcServer::addService ( const std::string &  domain,
const ServiceRegistry service 
)
void cxxtools::bin::RpcServer::listen ( const std::string &  ip,
unsigned short int  port,
int  backlog = 64 
)
void cxxtools::bin::RpcServer::listen ( unsigned short int  port,
int  backlog = 64 
)
void cxxtools::bin::RpcServer::loadSslCertificateFile ( const std::string &  certificateFile,
const std::string &  privateKeyFile = std::string() 
)
unsigned cxxtools::bin::RpcServer::maxThreads ( ) const
void cxxtools::bin::RpcServer::maxThreads ( unsigned  m)
unsigned cxxtools::bin::RpcServer::minThreads ( ) const
void cxxtools::bin::RpcServer::minThreads ( unsigned  m)

Friends And Related Function Documentation

friend class Responder
friend

Member Data Documentation

Signal<Runmode> cxxtools::bin::RpcServer::runmodeChanged

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