- com
- softwareag
- umtransport
- AsynchronousTransport
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>
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... | |
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.
|
virtual |
Close the Transport so that data can no longer be read/written.
Implements com::softwareag::umtransport::Transport.
|
virtual |
Used to check if 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.
buffer | contains the binary data to write to the Transport |