com::softwareag::umtransport::AsynchronousTransport Class Reference

This is a client side Transport object. It is constructed on the client side by creating a ClientTransportContext which is then passed to TransportFactory.bind with the required callback objects (DataHandler, CloseHandler). On the server side, an AsynchronousServerTransport will accept connections and handle them as AsynchronousTransports. More...

#include <AsynchronousTransport.h>

Inheritance diagram for com::softwareag::umtransport::AsynchronousTransport:
com::softwareag::umtransport::Transport

Public Member Functions

virtual void close ()
 Close the Transport so that data can no longer be read/written. More...
 
virtual bool isClosed ()
 Used to check if the Transport has been closed More...
 
void write (ByteBuffer *buffer)
 Write (and flush) the data stored in the ByteBuffer to the network/file depending on the protocol used in the TransportContext. More...
 

Detailed Description

This is a client side Transport object. It is constructed on the client side by creating a ClientTransportContext which is then passed to TransportFactory.bind with the required callback objects (DataHandler, CloseHandler). On the server side, an AsynchronousServerTransport will accept connections and handle them as AsynchronousTransports.

Member Function Documentation

virtual void com::softwareag::umtransport::AsynchronousTransport::close ( )
virtual

Close the Transport so that data can no longer be read/written.

Implements com::softwareag::umtransport::Transport.

virtual bool com::softwareag::umtransport::AsynchronousTransport::isClosed ( )
virtual

Used to check if the Transport has been closed

Returns
true in the Transport has been closed

Implements com::softwareag::umtransport::Transport.

void com::softwareag::umtransport::AsynchronousTransport::write ( ByteBuffer *  buffer)

Write (and flush) the data stored in the ByteBuffer to the network/file depending on the protocol used in the TransportContext.

Parameters
buffercontains the binary data to write to the Transport