Class: TMessageStreamsTransport

Declaration: MessageStreamsTransport.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TRemoteCallerTransport

Inherited By:

None.

Purpose:

TMessageStreamsTransport is a class that implements the standard transport class used for remote procedure calls. Clients use TMessageStreamsTransport to handle the transport between itself and a dispatcher.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

No classes are derived from TMessageStreamsTransport.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TMessageStreamsTransport::TMessageStreamsTransport

TMessageStreamsTransport (TReqSenderStream * adoptStream)

Interface Category:

API.

Purpose:

Creates a TMessageStreamsTransport using the specified sender stream.

Calling Context:

Called to create a TMessageStreamsTransport with the specified sender stream.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMessageStreamsTransport::~TMessageStreamsTransport

virtual ~ TMessageStreamsTransport ()

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TMessageStreamsTransport::GetArgumentStream

virtual TStream * GetArgumentStream ()

Interface Category:

API.

Purpose:

Returns a pointer to the argument stream associated with this TMessageStreamsTransport.

Calling Context:

Called to obtain a pointer to the argument stream associated with this TMessageStreamsTransport.

Parameters:

Return Value:

Returns a pointer to the argument stream associated with this TMessageStreamsTransport.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMessageStreamsTransport::GetResultStream

virtual TStream * GetResultStream ()

Interface Category:

API.

Purpose:

Returns a pointer to the result stream associated with this TMessageStreamsTransport.

Calling Context:

Called to obtain a pointer to the result stream associated with this TMessageStreamsTransport.

Parameters:

Return Value:

Returns a pointer to the result stream associated with this TMessageStreamsTransport.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMessageStreamsTransport::SendRequest

virtual TStream * SendRequest ()

Interface Category:

API.

Purpose:

Sends the caller's request to the dispatcher and receives the reply the dispatcher returns.

Calling Context:

Called to send a request and receive the reply.

Parameters:

Return Value:

Returns a pointer to the sender stream.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMessageStreamsTransport::EndRequest

virtual void EndRequest ()

Interface Category:

API.

Purpose:

Releases any resources used for receiving the reply and puts the stream into a state that allows the client to send another request.

Calling Context:

Called when an application has processed all of the reply received.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not 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.