com::softwareag::umtransport::SynchronousTransport Class Reference

This Transport represents a client connection. It is created on the client side using TransportFactory.connect and on the server side using SynchronousServerTransport.accept(). Read and write calls to this Transport are blocking calls. More...

#include <SynchronousTransport.h>

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

Public Member Functions

virtual void close ()
 Close the Transport so it can no longer be used for communication More...
 
InputStream & getInputStream ()
 Get the InputStream for this Transport. This can be used to read data sent by/to the client. More...
 
OutputStream & getOutputStream ()
 Get the OutputStream for this Transport. This can be used to write data to the client/server. More...
 
virtual bool isClosed ()
 Check to see whether this Transport has been closed already More...
 

Detailed Description

This Transport represents a client connection. It is created on the client side using TransportFactory.connect and on the server side using SynchronousServerTransport.accept(). Read and write calls to this Transport are blocking calls.

Member Function Documentation

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

Close the Transport so it can no longer be used for communication

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

InputStream& com::softwareag::umtransport::SynchronousTransport::getInputStream ( )

Get the InputStream for this Transport. This can be used to read data sent by/to the client.

Returns
the InputStream for this client Transport
OutputStream& com::softwareag::umtransport::SynchronousTransport::getOutputStream ( )

Get the OutputStream for this Transport. This can be used to write data to the client/server.

Returns
OutputStream for this client Transport
virtual bool com::softwareag::umtransport::SynchronousTransport::isClosed ( )
virtual

Check to see whether this Transport has been closed already

Returns
return true if the Transport is closed

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