com::softwareag::umtransport::ClientSocketTransportContext Class Reference

Constructed using the ClientSocketTransportContext.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 <ClientSocketTransportContext.h>

Inheritance diagram for com::softwareag::umtransport::ClientSocketTransportContext:
com::softwareag::umtransport::ClientTransportContext com::softwareag::umtransport::TransportContext com::softwareag::umtransport::ClientSSLTransportContext

Data Structures

class  Builder
 This Builder object is used to build a ClientSocketTransportContext. The ClientSocketTransportContext is configured using the builder so that once build() is called, the ClientSocketTransportContext 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 getHost ()
 Returns the current value that has been set for the host name More...
 
int getPort ()
 Returns the current value that has been set for the port More...
 
virtual bool supportsAsync ()
 This ClientTransportContext supports Async which means that it can be used to create AsynchronousTransports using the TransportFactory.connect variant which takes callback objects. More...
 

Detailed Description

Constructed using the ClientSocketTransportContext.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::ClientSocketTransportContext::getHost ( )

Returns the current value that has been set for the host name

Returns
the host name that this Builder will set for the ClientTransportContext
int com::softwareag::umtransport::ClientSocketTransportContext::getPort ( )

Returns the current value that has been set for the port

Returns
the port that this Builder will set for the ClientTransportContext
virtual bool com::softwareag::umtransport::ClientSocketTransportContext::supportsAsync ( )
virtual

This ClientTransportContext supports Async which means that it can be used to create AsynchronousTransports using the TransportFactory.connect variant which takes callback objects.

Returns
true

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

Reimplemented in com::softwareag::umtransport::ClientSSLTransportContext.