com::softwareag::umtransport::ServerSocketTransportContext Class Reference

Constructed using the ServerSocketTransportContext.Builder. All information must be set on the Builder so that when this object is built, it is validated. It is used to create Transport objects using TransportFactory.connect. Communication on the transport is transmitted using TCP Sockets. More...

#include <ServerSocketTransportContext.h>

Inheritance diagram for com::softwareag::umtransport::ServerSocketTransportContext:
com::softwareag::umtransport::ServerTransportContext com::softwareag::umtransport::TransportContext com::softwareag::umtransport::ServerSSLTransportContext

Data Structures

class  Builder
 This Builder object is used to build a ServerSocketTransportContext. The ServerSocketTransportContext is configured using the builder so that once build() is called, the ServerSocketTransportContext is only returned if it is valid. You can use the Builder to create simple readable code like this: More...
 

Public Member Functions

std::string getAdapter ()
 Returns the adapter that will be bound to by ServerTransports created using this ServerContext More...
 
int getPort ()
 Returns the port that will be used by ServerTransports created using this ServerContext More...
 
int getReadBufferSize ()
 Get the read buffer size in bytes that will be used by ServerTransports created using this ServerContext More...
 
int getWriteBufferSize ()
 Get the write buffer size in bytes that will be used by ServerTransports created using this ServerContext More...
 
virtual bool supportsAsync ()
 This ServerTransportContext supports Async which means that it can be used to create AsynchronousServerTransports using the TransportFactory.bind variant which takes callback objects. More...
 

Detailed Description

Constructed using the ServerSocketTransportContext.Builder. All information must be set on the Builder so that when this object is built, it is validated. It is used to create Transport objects using TransportFactory.connect. Communication on the transport is transmitted using TCP Sockets.

Member Function Documentation

std::string com::softwareag::umtransport::ServerSocketTransportContext::getAdapter ( )

Returns the adapter that will be bound to by ServerTransports created using this ServerContext

Returns
the adapter that ServerTransports will bind to e.g. "0.0.0.0"
int com::softwareag::umtransport::ServerSocketTransportContext::getPort ( )

Returns the port that will be used by ServerTransports created using this ServerContext

Returns
the port that ServerTransports will bind to e.g. 8080
int com::softwareag::umtransport::ServerSocketTransportContext::getReadBufferSize ( )

Get the read buffer size in bytes that will be used by ServerTransports created using this ServerContext

Returns
the read buffer size in bytes
int com::softwareag::umtransport::ServerSocketTransportContext::getWriteBufferSize ( )

Get the write buffer size in bytes that will be used by ServerTransports created using this ServerContext

Returns
the write buffer size in bytes
virtual bool com::softwareag::umtransport::ServerSocketTransportContext::supportsAsync ( )
virtual

This ServerTransportContext supports Async which means that it can be used to create AsynchronousServerTransports using the TransportFactory.bind variant which takes callback objects.

Returns
true

Implements com::softwareag::umtransport::TransportContext.