xdrpp
RFC4506 XDR compiler and message library
Public Member Functions | List of all members
xdr::srpc_server Class Reference

Attach RPC services to a single, connected stream socket. More...

#include <srpc.h>

Inheritance diagram for xdr::srpc_server:
Inheritance graph
[legend]
Collaboration diagram for xdr::srpc_server:
Collaboration graph
[legend]

Public Member Functions

 srpc_server (sock_t s, bool close_on_destruction=true)
 
template<typename T , typename Interface = typename T::rpc_interface_type>
void register_service (T &t)
 Add objects implementing RPC program interfaces to the server.
 
void run ()
 Start serving requests. (Loops until an exception.)
 
- Public Member Functions inherited from xdr::rpc_server_base
void dispatch (void *session, msg_ptr m, service_base::cb_t reply)
 

Additional Inherited Members

- Protected Member Functions inherited from xdr::rpc_server_base
void register_service_base (service_base *s)
 

Detailed Description

Attach RPC services to a single, connected stream socket.

No procedures will be implemented by the RPC server until interface objects are reigstered with register_server.

Definition at line 159 of file srpc.h.


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