Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

msg_rpc_connection Class Reference

classes implement the RPC protocol communication More...

#include <msg_rpc.h>

Inheritance diagram for msg_rpc_connection:

msg_connection msg_queue_processor msg_base msg_queue< 3 > terimber_thread_employer

List of all members.

Public Member Functions

 msg_rpc_connection (msg_communicator *communicator_, rpc_binding_handle_t handle_, const conf_listener &linfo, const conf_connection &info)
 constructor for receiver
 msg_rpc_connection (msg_communicator *communicator_, rpc_binding_handle_t handle_, const conf_connection &info)
 constructor for initiator
virtual ~msg_rpc_connection ()
 destructor

Static Public Member Functions

static msg_connectionconnect (msg_communicator *communicator_, const conf_connection &info)
 establishes RPC connection due to info
static void send_msg (msg_communicator *communicator_, msg_rpc_connection *_this, rpc_binding_handle_t handle_, msg_cpp *msg_)
 send RPC message to the peer

Protected Member Functions

virtual void v_do_job (size_t ident, void *user_data)
 override the base functionality

Private Attributes

rpc_binding_handle_t _handle
 keeps the RPC handle for connection


Detailed Description

classes implement the RPC protocol communication

Definition at line 46 of file msg_rpc.h.


Constructor & Destructor Documentation

msg_rpc_connection::msg_rpc_connection ( msg_communicator communicator_,
rpc_binding_handle_t  handle_,
const conf_listener linfo,
const conf_connection info 
)

constructor for receiver

Parameters:
communicator_  communicator
handle_  rpc handle
linfo  listener info
info  connection info

Definition at line 336 of file msg_rpc.cpp.

Referenced by connect(), and ServerConnect().

msg_rpc_connection::msg_rpc_connection ( msg_communicator communicator_,
rpc_binding_handle_t  handle_,
const conf_connection info 
)

constructor for initiator

Parameters:
communicator_  communicator
handle_  rpc handle
info  connection info

Definition at line 341 of file msg_rpc.cpp.

msg_rpc_connection::~msg_rpc_connection (  )  [virtual]

destructor

Definition at line 346 of file msg_rpc.cpp.

References _handle, and rpc_binding_free.


Member Function Documentation

void msg_rpc_connection::send_msg ( msg_communicator communicator_,
msg_rpc_connection _this,
rpc_binding_handle_t  handle_,
msg_cpp msg_ 
) [static]

void msg_rpc_connection::v_do_job ( size_t  ident,
void *  user_data 
) [protected, virtual]

override the base functionality

Parameters:
ident  thread ident
user_data  user data

Implements terimber_thread_employer.

Definition at line 356 of file msg_rpc.cpp.

References msg_base::_communicator, _handle, msg_communicator::log_msg(), msg_queue< 3 >::pop(), queue_thread_ident, send_msg(), msg_connection::set_last_activity(), and msg_communicator::shutdown_connection().


Member Data Documentation

rpc_binding_handle_t msg_rpc_connection::_handle [private]

keeps the RPC handle for connection

Definition at line 88 of file msg_rpc.h.

Referenced by v_do_job(), and ~msg_rpc_connection().


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


© Copyright Terimber 2003-.