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

implements the message reply keeper for asynchronous send More...

#include <msg_user.h>

List of all members.

Public Member Functions

 msg_wait_async_reply (const guid_t &ident, ub8_t timeout_)
 constructor
 ~msg_wait_async_reply ()
 destructor
void set_reply (msg_cpp *msg_)
 sets incoming reply
msg_cppget_reply ()
 gets stored reply
msg_cppget_reply_data (guid_t &ident)
 gets stored reply + ident
bool is_expired (sb8_t now) const
 checks expiration date

Private Attributes

guid_t _ident
 keep ident
msg_cpp_reply
 keep the pointer to reply message
sb8_t _expired
 keep date expired


Detailed Description

implements the message reply keeper for asynchronous send

Definition at line 82 of file msg_user.h.


Constructor & Destructor Documentation

msg_wait_async_reply::msg_wait_async_reply ( const guid_t ident,
ub8_t  timeout_ 
)

constructor

Parameters:
ident  unique message marker
timeout_  timeout in milliseconds

Definition at line 56 of file msg_user.cpp.

References _expired.

msg_wait_async_reply::~msg_wait_async_reply (  )  [inline]

destructor

Definition at line 90 of file msg_user.h.


Member Function Documentation

void msg_wait_async_reply::set_reply ( msg_cpp msg_  )  [inline]

sets incoming reply

Parameters:
msg_  message pointer

Definition at line 96 of file msg_user.h.

References _reply.

msg_cpp* msg_wait_async_reply::get_reply (  )  [inline]

gets stored reply

Definition at line 104 of file msg_user.h.

References _reply.

msg_cpp* msg_wait_async_reply::get_reply_data ( guid_t ident  )  [inline]

gets stored reply + ident

Parameters:
ident  [out] message ident

Definition at line 116 of file msg_user.h.

References _ident, and _reply.

Referenced by msg_user_connection::pop_async().

bool msg_wait_async_reply::is_expired ( sb8_t  now  )  const [inline]

checks expiration date

Definition at line 131 of file msg_user.h.

References _expired.


Member Data Documentation

keep ident

Definition at line 137 of file msg_user.h.

Referenced by get_reply_data().

keep the pointer to reply message

Definition at line 138 of file msg_user.h.

Referenced by get_reply(), get_reply_data(), and set_reply().

keep date expired

Definition at line 139 of file msg_user.h.

Referenced by is_expired(), and msg_wait_async_reply().


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


© Copyright Terimber 2003-.