Class: TCaucusReceiveMessage

Declaration: Caucus.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

TCaucusReceiveMessage is used to receive a message from a caucus. The client receives a message by creating a TCaucusReceiveMessage object, streaming data out of it, and destroying the object. TCaucusReceiveMessage is always constructed on the stack.

Instantiation:

Always allocate on the stack.

Deriving Classes:

Do not derive from this class.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TCaucusReceiveMessage::TCaucusReceiveMessage

  1. TCaucusReceiveMessage (TCaucusMember * memberAlias)
  2. TCaucusReceiveMessage (TCaucusMember * memberAlias, TCaucusMember :: Identifier & senderID)
  3. TCaucusReceiveMessage (TCaucusMember * memberAlias, TCaucusMember :: Identifier & senderID, bool & isLeaveMessage)

Interface Category:

API.

Purpose:

  1. Creates a new TCaucusReceiveMessage to receive a message for the specified caucus member. Initiates a receive operation.
  2. Creates a new TCaucusReceiveMessage to receive a message for the specified caucus member. Initiates a receive operation.
  3. Creates a new TCaucusReceiveMessage to receive a message for the specified caucus member. Initiates a receive operation.

Calling Context:

  1. Called by the caucus member receiving the message.
  2. Called by the caucus member receiving the message.
  3. Called by the caucus member receiving the message.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

The constructor completes, only when there is a message to be received otherwise, it blocks. Use a separate thread to receive messages. Allocate one TCaucusReceiveMessage per caucus message.

Member Function: TCaucusReceiveMessage::~TCaucusReceiveMessage

~ TCaucusReceiveMessage ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TCaucusReceiveMessage::operatorTStream&

operator TStream & () const

Interface Category:

API.

Purpose:

Returns the stream used to receive the message.

Calling Context:

You do not need to call this function directly. The compiler should generate a stream conversion operator for you when you stream data out of this object.

Parameters:

Return Value:

Returns the stream used to receive the message.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.