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_pack Class Reference

pack error and reply messages More...

#include <msg_cpp.h>

List of all members.

Static Public Member Functions

static void make_error_msg (msg_cpp *msg, const char *text)
 prepares error message on incoming message with specified text
static void make_reply_msg (const msg_cpp *msg, msg_cpp *reply)
 prepares the template reply for incoming message fill header information


Detailed Description

pack error and reply messages

Definition at line 397 of file msg_cpp.h.


Member Function Documentation

void msg_pack::make_error_msg ( msg_cpp msg,
const char *  text 
) [static]

prepares error message on incoming message with specified text

Parameters:
msg  message pointer
text  error text

Definition at line 254 of file msg_cpp.cpp.

References msg_cpp::get_body(), MSG_ERROR_ID, msg_t::msgid, msg_cpp::resize(), and str_template::strlen().

Referenced by msg_rpc_connection::send_msg(), msg_user_connection::v_do_job(), msg_sock_connection::v_do_job(), and msg_communicator::v_do_job().

void msg_pack::make_reply_msg ( const msg_cpp msg,
msg_cpp reply 
) [static]

prepares the template reply for incoming message fill header information

Parameters:
msg  input message pointer
reply  output message pointer

Definition at line 226 of file msg_cpp.cpp.

References msg_cpp::_marker, msg_cpp::_receiver, msg_cpp::_sender, msg_cpp::_type, handshake_type, system_type, user_type_reply, user_type_reply_async, user_type_send, and user_type_send_async.

Referenced by msg_user_connection::process_income_message(), msg_rpc_connection::send_msg(), msg_sock_connection::v_do_job(), and msg_communicator::v_do_job().


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


© Copyright Terimber 2003-.