Home / Open source / Terimber 2.0
msg_communicator Class Referencekernel class in the messaging system communication dispatches incoming messages, creates and destroys connection objects makes a lot of dirty work: dynamic casting, msg allocation/destruction and more ...
More...
#include <msg_comm.h>
List of all members.
|
Public Member Functions |
| msg_communicator () |
| constructor
|
| ~msg_communicator () |
| destructor
|
void | init (const char *info_, const char *ini_key_) |
| initializes internal structure due to file xml content generates unique initializing key for owner the same key owner has to use for uinit function NB!!! throw exception class object
|
void | init (const void *info_, size_t len) |
| initializes internal structure due to file xml content generates unique initializing key for owner the same key owner has to use for uinit function NB!!! throws exception class object
|
void | init (xml_designer *nav) |
| as previous but take already parsed document NB!!! throws exception class object
|
void | uninit () |
| uinitializes message system closes all listeners and connection
|
void | add_connection (msg_connection *connection) |
| adds connection to the connection map
|
void | change_connection_address (const guid_t &old_address, msg_connection *connection) |
void | shutdown_connection (msg_connection *connection) |
| this function insert message into communicator queue gives the order to destroy connection so this function can be called the connection function itself
|
const guid_t & | get_address () const |
| returns communicator address - this is module address
|
msg_cpp * | construct_msg (size_t size) |
| constructs msg with body size NB!!! throws exception class object
|
bool | resize_msg (msg_cpp *msg, size_t size) |
| reallocates message body, saves the old part of body, if any
|
msg_cpp * | copy_msg (msg_cpp *msg) |
| copies message content
|
bool | destroy_msg (msg_cpp *msg) |
| destroys msg_cpp object, free memory
|
void | get_msg_key (room_byte_t &crypt_private, const room_byte_t &crypt_external, const guid_t &session) const |
| returns transport key
|
msg_connection * | find_connection (const guid_t &addr) |
| tries to find connection with specified address
|
msg_listener * | find_listener (transport_type type) |
| tries to find listener with specified address and type
|
bool | validate_connection (const msg_connection *connection) const |
| checks if specified connection is still alive and has not been removed from connection map
|
void | comm_msg (msg_cpp *msg) |
| put incoming message into the communicator communicator can redirect message or put message into queue NB!!! throws exception class object
|
msg_cpp * | construct_handshake (const rsa *rsa) |
| constructs handshake message as initiator NB!!! throws exception class object
|
msg_cpp * | reply_handshake (const msg_cpp *msg, room_byte_t *symetric_private_key) |
| analyzes incoming handshake message prepares outgoing message on incoming message NB!!! throws exception class object
|
void | check_handshake (const guid_t &sessionid, const msg_cpp *reply, const rsa *rsa, room_byte_t &symetric_private_key) |
| checks the reply from connection peer NB!!! throws exception class object
|
msg_cpp * | construct_ping () |
| constructs ping message as initiator NB !!! throws exception class object
|
aiosock & | get_aiosock () |
| gets socket manager
|
threadpool & | get_thread_manager () |
| gets thread manager
|
event_pool_t & | get_event_pool () |
| gets event pool
|
void | add_connection_config (const conf_connection &atom) |
| adds connection trows exception functions
|
void | add_listener_config (const conf_listener &atom, bool start) |
| adds listener
|
void | remove_connection_config (const guid_t &address) |
| removes connection
|
void | remove_listener_config (transport_type type) |
| removes listener
|
void | doxray () |
| does xray
|
void | log_msg (const msg_cpp *msg) |
| outputs debug message
|
Static Public Member Functions |
static msg_cpp * | cast (msg_t *msg) |
| casts C style message to CPP style message
|
static const msg_cpp * | cast (const msg_t *msg) |
| casts C style const message to CPP style const message
|
static bool | set_receiver (msg_cpp *msg, const guid_t &receiver) |
| sets receiver address for specified message
|
static bool | get_sender (const msg_cpp *msg, guid_t &sender) |
| returns the sender of specified message
|
static void | parse_connection (xml_designer *nav, conf_connection &atom) |
| parses xml into connection info
|
static void | parse_listener (xml_designer *nav, conf_listener &atom) |
| parses xml into listener info
|
static msg_communicator * | loan_communicator (const guid_t &addr) |
| loans the communicator
|
static void | return_communicator (const guid_t &addr, msg_communicator *comm) |
| returns back the communicator pointer
|
Protected Member Functions |
virtual void | v_do_job (size_t ident, void *user_data) |
| base functionality - override virtual function
|
virtual void | v_on () |
| turns on communicator to the working state turns on all listeners and established previous connections
|
virtual void | v_off () |
| turns off communicator turns off all listeners and established previuosly connections
|
virtual void | wakeup () |
| wakeup wokring thread
|
virtual void | notify (size_t ident, size_t interval, size_t multiplier) |
| timer_callback
|
Private Types |
typedef list< msg_listener * > | listener_list_t |
| list of listener pointers
|
typedef map< guid_t,
msg_connection * > | connection_map_t |
| maps guid to message connection
|
typedef map< guid_t,
msg_communicator * > | this_map_t |
| maps guid to communicator connection
|
Private Member Functions |
msg_connection * | _connect (const conf_connection &info_, ub8_t timeout) |
| tries to establish the new connection according to info_ NB!!! throws exception class object
|
void | _close_connection (const guid_t &addr) |
| removes connection from the connection map
|
msg_cpp * | _generate_crypt_private_key (const rsa &rsa, room_byte_t &symetric_private_key) |
| packs rsa
|
msg_cpp * | _pack_keys (const integer &n, const integer &e) |
| adds encryption keys to message
|
void | _extract_keys (const msg_cpp *msg, integer &n, integer &e) |
| extracts encryption keys from message
|
void | _decrypt_private_key (const msg_cpp *reply, const rsa &rsa, room_byte_t &symetric_private_key) |
| extracts private symmetric key
|
void | _turn_off_listeners () |
| turns off all listeners
|
void | _turn_on_listeners () |
| turns on all listeners
|
void | _destroy_listeners () |
| destroys all listeners
|
void | _turn_off_connections () |
| turns off all connections
|
void | _turn_on_connections () |
| turns on all connections
|
void | _destroy_connections () |
| destroys all connections
|
void | _create_listeners () |
| creates all listenrs
|
void | _create_listener (const conf_listener &atom) |
| creates a listener from info
|
void | _register_this () |
| registers this pointer at the static map
|
void | _revoke_this () |
| revokes this pointer from the static map
|
Private Attributes |
guid_t | _address |
| internal communicator address
|
guid_t | _debug_address |
| debug information address
|
mutex | _mtx_listeners |
| multithreaded locker for listeners map
|
listener_list_t | _listeners |
| list of listeners
|
mutex | _mtx_conn |
| multithreaded locker for connection map
|
connection_map_t | _connections |
| connection map
|
mem_pool_t | _manager |
| memory allocation manager
|
threadpool | _thread_manager |
| thread pool
|
aiosock | _aio_port |
| socket port
|
timer | _ping_timer |
| ping timer
|
mutex | _mtx_config |
| multithreaded locker for config unit
|
conf_unit | _config |
| configuration information
|
event_pool_t | _event_pool |
| pool of events
|
Static Private Attributes |
static keylocker | _this_access |
| to prevent static function calls without valid communicator instance
|
static this_map_t | _this_map |
| keeps the communicators map
|
Detailed Description
kernel class in the messaging system communication dispatches incoming messages, creates and destroys connection objects makes a lot of dirty work: dynamic casting, msg allocation/destruction and more ...
Definition at line 71 of file msg_comm.h.
Member Typedef Documentation
maps guid to message connection
Definition at line 80 of file msg_comm.h.
maps guid to communicator connection
Definition at line 83 of file msg_comm.h.
Constructor & Destructor Documentation
msg_communicator::msg_communicator |
( |
|
) |
|
msg_communicator::~msg_communicator |
( |
|
) |
|
Member Function Documentation
void msg_communicator::init |
( |
const char * |
info_, |
|
|
const char * |
ini_key_ | |
|
) |
| | |
void msg_communicator::init |
( |
const void * |
info_, |
|
|
size_t |
len | |
|
) |
| | |
as previous but take already parsed document NB!!! throws exception class object
- Parameters:
-
nav |
xml designer instance |
Definition at line 400 of file msg_comm.cpp.
References conf_listener::_address, _address, _create_listeners(), exception::_throw(), add_connection_config(), add_listener_config(), ELEMENT_NODE, xml_designer::get_name(), xml_designer::get_type(), xml_designer::get_value(), xml_designer::has_attributes(), xml_designer::has_children(), msg_queue< 3 >::is_block(), parse_connection(), parse_listener(), xml_designer::select_attribute_by_name(), xml_designer::select_first_child(), xml_designer::select_next_sibling(), xml_designer::select_parent(), xml_designer::select_root(), str_template::strcmp(), string_to_guid(), and v_on().
void msg_communicator::uninit |
( |
|
) |
|
adds connection to the connection map
- Parameters:
-
connection |
connection pointer |
Definition at line 787 of file msg_comm.cpp.
References conf_connection::_address, _connections, _mtx_conn, exception::_throw(), base_map< K, T, Pr, M >::end(), base_map< K, T, Pr, M >::find(), msg_connection::get_info(), map< K, T, Pr, M >::insert(), MSG_RESULT_ACCESS_DENIED, and msg_base::on().
Referenced by msg_sock_connection::accept(), msg_user_connection::connect(), msg_sock_connection::connect(), and msg_rpc_connection::connect().
void msg_communicator::change_connection_address |
( |
const guid_t & |
old_address, |
|
|
msg_connection * |
connection | |
|
) |
| | |
- Parameters:
-
old_address |
old connection address |
connection |
new connection pointer |
Definition at line 805 of file msg_comm.cpp.
References conf_connection::_address, _connections, _mtx_conn, exception::_throw(), base_map< K, T, Pr, M >::end(), map< K, T, Pr, M >::erase(), base_map< K, T, Pr, M >::find(), msg_connection::get_info(), map< K, T, Pr, M >::insert(), and MSG_RESULT_ACCESS_DENIED.
Referenced by msg_connection::process_incoming_message().
void msg_communicator::shutdown_connection |
( |
msg_connection * |
connection |
) |
|
this function insert message into communicator queue gives the order to destroy connection so this function can be called the connection function itself
- Parameters:
-
connection |
connection pointer |
Definition at line 825 of file msg_comm.cpp.
References conf_connection::_address, _address, _thread_manager, msg_queue< P, C >::block(), construct_msg(), smart_pointer< C >::detach(), en_log_info, terimber_log::format_logging(), msg_connection::get_info(), msg_id_shutdown, MSG_PRIORITY_SYSTEM, msg_base::off(), msg_queue< 3 >::push(), threadpool::revoke_client(), and system_type.
Referenced by remove_connection_config(), aiomsg::stop(), msg_sock_connection::v_do_job(), msg_rpc_connection::v_do_job(), msg_sock_connection::v_on_connect(), msg_sock_connection::v_on_error(), msg_sock_connection::v_on_receive(), and msg_sock_connection::v_on_send().
const guid_t& msg_communicator::get_address |
( |
|
) |
const [inline] |
msg_cpp * msg_communicator::construct_msg |
( |
size_t |
size |
) |
|
constructs msg with body size NB!!! throws exception class object
- Parameters:
-
Definition at line 191 of file msg_comm.cpp.
References _manager, exception::_throw(), msg_cpp::construct(), destroy_msg(), msg_cpp::estimate_size(), pool< C >::loan_object(), MSG_RESULT_NOTMEMORY, and pool< C >::return_object().
Referenced by _generate_crypt_private_key(), _pack_keys(), aiomsg::construct(), construct_handshake(), construct_ping(), copy_msg(), msg_creator::create(), msg_user_connection::process_income_message(), reply_handshake(), msg_user_connection::send(), shutdown_connection(), and msg_sock_connection::v_on_receive().
bool msg_communicator::resize_msg |
( |
msg_cpp * |
msg, |
|
|
size_t |
size | |
|
) |
| | |
copies message content
- Parameters:
-
Definition at line 241 of file msg_comm.cpp.
References msg_cpp::_receiver, msg_cpp::_sender, msg_cpp::_sessionid, msg_cpp::_timestamp, msg_cpp::_type, construct_msg(), msg_cpp::get_body(), msg_cpp::get_size(), msg_t::majver, msg_t::minver, msg_t::msgid, msg_t::priority, and msg_t::timeout.
Referenced by msg_user_connection::post(), msg_user_connection::send(), and msg_user_connection::send_async().
bool msg_communicator::destroy_msg |
( |
msg_cpp * |
msg |
) |
|
destroys msg_cpp object, free memory
- Parameters:
-
Definition at line 221 of file msg_comm.cpp.
References _manager, msg_cpp::destroy(), byte_allocator::reset(), and pool< C >::return_object().
Referenced by comm_msg(), construct_msg(), aiomsg::destroy(), msg_creator::destroy(), msg_connection::process_incoming_message(), msg_user_connection::push_msg(), aiomsg::send(), msg_user_connection::v_off(), v_off(), msg_sock_connection::v_on_send(), msg_connection::~msg_connection(), msg_sock_connection::~msg_sock_connection(), and msg_user_connection::~msg_user_connection().
static msg_cpp* msg_communicator::cast |
( |
msg_t * |
msg |
) |
[inline, static] |
static const msg_cpp* msg_communicator::cast |
( |
const msg_t * |
msg |
) |
[inline, static] |
casts C style const message to CPP style const message
- Parameters:
-
Definition at line 185 of file msg_comm.h.
static bool msg_communicator::set_receiver |
( |
msg_cpp * |
msg, |
|
|
const guid_t & |
receiver | |
|
) |
| | [inline, static] |
static bool msg_communicator::get_sender |
( |
const msg_cpp * |
msg, |
|
|
guid_t & |
sender | |
|
) |
| | [inline, static] |
bool msg_communicator::validate_connection |
( |
const msg_connection * |
connection |
) |
const |
void msg_communicator::comm_msg |
( |
msg_cpp * |
msg |
) |
|
put incoming message into the communicator communicator can redirect message or put message into queue NB!!! throws exception class object
- Parameters:
-
Definition at line 877 of file msg_comm.cpp.
References msg_cpp::_sessionid, exception::_throw(), msg_cpp::_type, destroy_msg(), msg_queue< 3 >::is_block(), msg_id_ping, msg_t::msgid, null_uuid, msg_queue< 3 >::push(), and system_type.
Referenced by msg_user_connection::post(), msg_user_connection::process_income_message(), msg_connection::process_incoming_message(), msg_user_connection::send(), msg_user_connection::send_async(), msg_rpc_connection::send_msg(), and msg_sock_connection::v_do_job().
msg_cpp * msg_communicator::construct_handshake |
( |
const rsa * |
rsa |
) |
|
constructs handshake message as initiator NB!!! throws exception class object
- Parameters:
-
Definition at line 1055 of file msg_comm.cpp.
References _address, _pack_keys(), msg_cpp::_sender, msg_cpp::_sessionid, msg_cpp::_type, construct_msg(), handshake_default_timeout, handshake_type, msg_id_handshake_request, MSG_PRIORITY_SYSTEM, msg_t::msgid, msg_t::priority, msg_t::timeout, and uuid_gen().
Referenced by msg_connection::prepare_handshake_msg().
analyzes incoming handshake message prepares outgoing message on incoming message NB!!! throws exception class object
- Parameters:
-
msg |
message pointer |
symetric_private_key |
private symmetric key, optional |
Definition at line 1069 of file msg_comm.cpp.
References _address, _extract_keys(), _generate_crypt_private_key(), msg_cpp::_receiver, msg_cpp::_sender, msg_cpp::_sessionid, exception::_throw(), msg_cpp::_type, construct_msg(), handshake_default_timeout, handshake_type, msg_id_handshake_reply, msg_id_handshake_request, MSG_PRIORITY_SYSTEM, MSG_RESULT_ACCESS_DENIED, msg_t::msgid, msg_t::priority, and msg_t::timeout.
Referenced by msg_connection::prepare_handshake_reply(), and msg_connection::process_incoming_message().
void msg_communicator::check_handshake |
( |
const guid_t & |
sessionid, |
|
|
const msg_cpp * |
reply, |
|
|
const rsa * |
rsa, |
|
|
room_byte_t & |
symetric_private_key | |
|
) |
| | |
checks the reply from connection peer NB!!! throws exception class object
- Parameters:
-
sessionid |
session ident |
reply |
message pointer |
rsa |
RSA object |
symetric_private_key |
private symmetric key |
Definition at line 1104 of file msg_comm.cpp.
References _address, _decrypt_private_key(), msg_cpp::_receiver, msg_cpp::_sessionid, exception::_throw(), msg_cpp::_type, handshake_type, msg_id_handshake_reply, MSG_RESULT_ACCESS_DENIED, and msg_t::msgid.
Referenced by msg_connection::process_incoming_message(), and msg_connection::validate_handshake_reply().
msg_cpp * msg_communicator::construct_ping |
( |
|
) |
|
aiosock & msg_communicator::get_aiosock |
( |
|
) |
|
gets socket manager
Definition at line 1175 of file msg_comm.cpp.
References _aio_port.
Referenced by msg_sock_connection::accept(), msg_sock_connection::connect(), msg_sock_connection::msg_sock_connection(), msg_sock_connection::v_do_job(), msg_sock_listener::v_off(), msg_sock_listener::v_on(), msg_sock_connection::v_on_connect(), msg_sock_connection::v_on_receive(), msg_sock_connection::v_on_send(), msg_sock_connection::~msg_sock_connection(), and msg_sock_listener::~msg_sock_listener().
threadpool & msg_communicator::get_thread_manager |
( |
|
) |
|
void msg_communicator::add_connection_config |
( |
const conf_connection & |
atom |
) |
|
void msg_communicator::add_listener_config |
( |
const conf_listener & |
atom, |
|
|
bool |
start | |
|
) |
| | |
void msg_communicator::remove_connection_config |
( |
const guid_t & |
address |
) |
|
parses xml into connection info
- Parameters:
-
nav |
xml designer instance |
atom |
[out] connection info |
Definition at line 1243 of file msg_comm.cpp.
References conf_connection::_address, conf_connection::_crypt_external, conf_connection::_info, conf_connection::_network, conf_connection::_ping, conf_connection::_port, conf_connection::_support_crypt, exception::_throw(), conf_connection::_type, xml_designer::get_value(), os_minus_one, room_array< T >::reserve(), rpc, xml_designer::select_attribute_by_name(), xml_designer::select_parent(), sock, str_template::strcmp(), string_to_guid(), str_template::strlen(), and str_template::strscan().
Referenced by aiomsg::add_connection(), and init().
parses xml into listener info
- Parameters:
-
nav |
xml designer instance |
atom |
[out] listener info |
Definition at line 1330 of file msg_comm.cpp.
References conf_listener::_accept, conf_peer::_address, conf_listener::_connections, conf_peer::_crypt, conf_listener::_crypt_accept, conf_listener::_info, conf_listener::_network, conf_listener::_ping, conf_listener::_port, conf_listener::_reject, conf_peer::_support_crypt, conf_listener::_support_crypt, exception::_throw(), conf_listener::_type, ELEMENT_NODE, xml_designer::get_name(), xml_designer::get_type(), xml_designer::get_value(), xml_designer::has_children(), os_minus_one, list< T >::push_back(), room_array< T >::reserve(), rpc, xml_designer::select_attribute_by_name(), xml_designer::select_first_child(), xml_designer::select_next_sibling(), xml_designer::select_parent(), sock, str_template::strcmp(), string_to_guid(), str_template::strlen(), and str_template::strscan().
Referenced by aiomsg::add_listener(), and init().
loans the communicator
Definition at line 115 of file msg_comm.cpp.
References _this_access, _this_map, base_map< K, T, Pr, M >::end(), keylocker::enter(), base_map< K, T, Pr, M >::find(), and keylocker::leave().
Referenced by rpc2_communicator_keeper::rpc2_communicator_keeper().
returns back the communicator pointer
Definition at line 132 of file msg_comm.cpp.
References _this_access, _this_map, base_map< K, T, Pr, M >::end(), base_map< K, T, Pr, M >::find(), and keylocker::leave().
Referenced by rpc2_communicator_keeper::~rpc2_communicator_keeper().
void msg_communicator::doxray |
( |
|
) |
|
does xray
Definition at line 1195 of file msg_comm.cpp.
References _aio_port, _connections, _event_pool, _listeners, _manager, _mtx_conn, _mtx_listeners, _thread_manager, aiosock::doxray(), threadpool::doxray(), en_log_xray, terimber_log::format_logging(), pool< C >::get_stats(), base_map< K, T, Pr, M >::size(), list< T >::size(), and mutex_keeper::unlock().
Referenced by aiomsg::doxray().
void msg_communicator::log_msg |
( |
const msg_cpp * |
msg |
) |
|
outputs debug message
- Parameters:
-
Definition at line 1218 of file msg_comm.cpp.
References msg_cpp::_receiver, msg_cpp::_sender, msg_cpp::_timestamp, en_log_info, terimber_log::format_logging(), date::get_date(), msg_cpp::get_size(), guid_to_string(), msg_t::majver, msg_t::minver, msg_t::msgid, and msg_t::timeout.
Referenced by msg_rpc_connection::v_do_job().
void msg_communicator::v_do_job |
( |
size_t |
ident, |
|
|
void * |
user_data | |
|
) |
| | [protected, virtual] |
base functionality - override virtual function
- Parameters:
-
ident |
thread ident |
user_data |
user defined data |
Implements terimber_thread_employer.
Definition at line 899 of file msg_comm.cpp.
References _close_connection(), _config, _connect(), conf_unit::_connections, _connections, _mtx_config, _mtx_conn, exception::_throw(), base_list< T >::begin(), smart_pointer< C >::detach(), base_list< T >::end(), base_map< K, T, Pr, M >::end(), base_map< K, T, Pr, M >::find(), handshake_default_timeout, mutex_keeper::lock(), msg_pack::make_error_msg(), msg_pack::make_reply_msg(), msg_id_shutdown, MSG_RESULT_UNKNOWN_DESTINATION, msg_queue< 3 >::pop(), msg_queue< 3 >::push(), msg_connection::push_msg(), system_type, mutex_keeper::unlock(), user_type_send, user_type_send_async, and exception::what().
void msg_communicator::v_on |
( |
|
) |
[protected, virtual] |
turns on communicator to the working state turns on all listeners and established previous connections
Reimplemented from msg_queue_processor.
Definition at line 584 of file msg_comm.cpp.
References _aio_port, _ping_timer, _register_this(), _thread_manager, _turn_on_connections(), _turn_on_listeners(), timer::activate(), en_log_info, terimber_log::format_logging(), msg_base::is_on(), terimber_log_helper::log_on(), aiosock::on(), threadpool::on(), msg_queue< 3 >::unblock(), and msg_queue_processor::v_on().
Referenced by init().
void msg_communicator::v_off |
( |
|
) |
[protected, virtual] |
turns off communicator turns off all listeners and established previuosly connections
Reimplemented from msg_queue_processor.
Definition at line 618 of file msg_comm.cpp.
References _aio_port, _ping_timer, _thread_manager, _turn_off_connections(), _turn_off_listeners(), msg_queue< 3 >::block(), timer::deactivate(), destroy_msg(), en_log_info, terimber_log::format_logging(), msg_base::is_on(), terimber_log_helper::log_on(), threadpool::off(), aiosock::off(), msg_queue< 3 >::pop(), and msg_queue_processor::v_off().
Referenced by uninit().
void msg_communicator::wakeup |
( |
|
) |
[protected, virtual] |
void msg_communicator::notify |
( |
size_t |
ident, |
|
|
size_t |
interval, |
|
|
size_t |
multiplier | |
|
) |
| | [protected, virtual] |
void msg_communicator::_close_connection |
( |
const guid_t & |
addr |
) |
[private] |
removes connection from the connection map
- Parameters:
-
Definition at line 862 of file msg_comm.cpp.
References _connections, _mtx_conn, base_map< K, T, Pr, M >::end(), map< K, T, Pr, M >::erase(), and base_map< K, T, Pr, M >::find().
Referenced by v_do_job().
msg_cpp * msg_communicator::_generate_crypt_private_key |
( |
const rsa & |
rsa, |
|
|
room_byte_t & |
symetric_private_key | |
|
) |
| | [private] |
msg_cpp * msg_communicator::_pack_keys |
( |
const integer & |
n, |
|
|
const integer & |
e | |
|
) |
| | [private] |
void msg_communicator::_extract_keys |
( |
const msg_cpp * |
msg, |
|
|
integer & |
n, |
|
|
integer & |
e | |
|
) |
| | [private] |
void msg_communicator::_decrypt_private_key |
( |
const msg_cpp * |
reply, |
|
|
const rsa & |
rsa, |
|
|
room_byte_t & |
symetric_private_key | |
|
) |
| | [private] |
void msg_communicator::_turn_off_listeners |
( |
|
) |
[private] |
void msg_communicator::_turn_on_listeners |
( |
|
) |
[private] |
void msg_communicator::_destroy_listeners |
( |
|
) |
[private] |
void msg_communicator::_turn_off_connections |
( |
|
) |
[private] |
void msg_communicator::_turn_on_connections |
( |
|
) |
[private] |
void msg_communicator::_destroy_connections |
( |
|
) |
[private] |
destroys all connections
Definition at line 743 of file msg_comm.cpp.
References _connections, _mtx_conn, base_map< K, T, Pr, M >::begin(), map< K, T, Pr, M >::clear(), and base_map< K, T, Pr, M >::end().
Referenced by uninit().
void msg_communicator::_create_listeners |
( |
|
) |
[private] |
void msg_communicator::_create_listener |
( |
const conf_listener & |
atom |
) |
[private] |
void msg_communicator::_register_this |
( |
|
) |
[private] |
registers this pointer at the static map
Definition at line 166 of file msg_comm.cpp.
References _address, _this_access, _this_map, exception::_throw(), base_map< K, T, Pr, M >::end(), base_map< K, T, Pr, M >::find(), and map< K, T, Pr, M >::insert().
Referenced by v_on().
void msg_communicator::_revoke_this |
( |
|
) |
[private] |
Member Data Documentation
debug information address
Definition at line 419 of file msg_comm.h.
multithreaded locker for connection map
Definition at line 422 of file msg_comm.h.
Referenced by _close_connection(), _destroy_connections(), _turn_off_connections(), _turn_on_connections(), add_connection(), change_connection_address(), doxray(), find_connection(), notify(), v_do_job(), and validate_connection().
connection map
Definition at line 423 of file msg_comm.h.
Referenced by _close_connection(), _destroy_connections(), _turn_off_connections(), _turn_on_connections(), add_connection(), change_connection_address(), doxray(), find_connection(), notify(), v_do_job(), and validate_connection().
The documentation for this class was generated from the following files:
|
|