com::softwareag::umtransport::DataHandler Class Referenceabstract

This interface is passed to the TransportFactory.connect method when you want to create an AsynchronousTransport. It is also passed to the TransportFactory.bind method when you want an AsynchronousServerTransport. The onRead method will be called when data has been read from the AsynchronousTransport. More...

#include <DataHandler.h>

Public Member Functions

virtual void onRead (ByteBuffer *buffer, AsynchronousTransport *transport)=0
 Called when data has been read from transport. The data is passed to the user in a ByteBuffer. More...
 

Detailed Description

This interface is passed to the TransportFactory.connect method when you want to create an AsynchronousTransport. It is also passed to the TransportFactory.bind method when you want an AsynchronousServerTransport. The onRead method will be called when data has been read from the AsynchronousTransport.

Member Function Documentation

virtual void com::softwareag::umtransport::DataHandler::onRead ( ByteBuffer *  buffer,
AsynchronousTransport transport 
)
pure virtual

Called when data has been read from transport. The data is passed to the user in a ByteBuffer.

Parameters
bufferByteBuffer containing the data read from the Transport
transportThe Transport that data has been read from