|
|
|
Home / Open source / Terimber 2.0
msg_connection Class Referencebase class for all types of connections
More...
#include <msg_conn.h>
List of all members.
Detailed Description
base class for all types of connections
Definition at line 44 of file msg_conn.h.
Member Enumeration Documentation
- Enumerator:
-
CONN_STATE_CLOSE |
close state |
CONN_STATE_HANDSHAKE_INITIATOR |
connection established, handshake in progress |
CONN_STATE_HANDSHAKE_RECEIVER |
connection accepted, handshake in progress |
CONN_STATE_CONNECTED |
connection is ready for sending/receiving messages |
Definition at line 48 of file msg_conn.h.
Constructor & Destructor Documentation
msg_connection::~msg_connection |
( |
|
) |
[virtual] |
Member Function Documentation
void msg_connection::push_msg |
( |
msg_cpp * |
msg |
) |
[virtual] |
const room_byte_t* msg_connection::get_crypt_key |
( |
|
) |
[inline] |
void msg_connection::set_last_activity |
( |
|
) |
[inline] |
bool msg_connection::is_last_activity_timeout |
( |
|
) |
[inline] |
void msg_connection::ping_notify |
( |
|
) |
[virtual] |
const rsa* msg_connection::get_rsa |
( |
|
) |
const [inline] |
bool msg_connection::is_connected |
( |
|
) |
const [inline] |
msg_cpp * msg_connection::prepare_handshake_msg |
( |
|
) |
|
prepares handshake reply as a receiver
Definition at line 135 of file msg_conn.cpp.
References conf_connection::_address, msg_base::_communicator, conf_connection::_crypt_private, _info, _linfo, msg_cpp::_sender, conf_connection::_session, msg_cpp::_sessionid, _state, conf_connection::_support_crypt, msg_listener::accept_address(), CONN_STATE_CONNECTED, msg_communicator::reply_handshake(), and msg_t::timeout.
Referenced by ServerConnect().
void msg_connection::validate_handshake_reply |
( |
msg_cpp * |
msg |
) |
|
void msg_connection::process_incoming_message |
( |
msg_cpp * |
msg |
) |
|
- Parameters:
-
Definition at line 165 of file msg_conn.cpp.
References conf_connection::_address, msg_base::_communicator, conf_connection::_crypt_private, _info, _linfo, msg_cpp::_sender, conf_connection::_session, msg_cpp::_sessionid, _state, conf_connection::_support_crypt, exception::_throw(), msg_cpp::_type, msg_listener::accept_address(), msg_communicator::change_connection_address(), msg_communicator::check_handshake(), msg_communicator::comm_msg(), CONN_STATE_CONNECTED, CONN_STATE_HANDSHAKE_INITIATOR, CONN_STATE_HANDSHAKE_RECEIVER, msg_communicator::destroy_msg(), smart_pointer< C >::detach(), get_rsa(), handshake_type, msg_id_ping, MSG_RESULT_INVALID_MSGFORMAT, MSG_RESULT_INVALID_SESSION, msg_t::msgid, msgMsgTable, msg_queue< 3 >::push(), msg_communicator::reply_handshake(), set_last_activity(), system_type, msg_t::timeout, user_type_post, user_type_reply, user_type_reply_async, user_type_send, user_type_send_async, and wakeup().
Referenced by ServerPostBlock(), and msg_sock_connection::v_on_receive().
void msg_connection::wakeup |
( |
|
) |
[protected, virtual] |
Member Data Documentation
connection info
Definition at line 143 of file msg_conn.h.
Referenced by get_crypt_key(), get_info(), get_rsa(), is_last_activity_timeout(), msg_connection(), ping_notify(), msg_user_connection::post(), prepare_handshake_msg(), prepare_handshake_reply(), process_incoming_message(), push_msg(), msg_user_connection::send(), msg_user_connection::send_async(), msg_user_connection::v_do_job(), msg_sock_connection::v_do_job(), and validate_handshake_reply().
The documentation for this class was generated from the following files:
|
|
|
|