com::softwareag::umtransport::SynchronousServerTransport Class Reference

This ServerTransport is used synchronously accept client transports. The accept() call is a blocking call which will return a SynchronousTransport as soon as it connects. More...

#include <SynchronousServerTransport.h>

Inheritance diagram for com::softwareag::umtransport::SynchronousServerTransport:
com::softwareag::umtransport::ServerTransport

Public Member Functions

std::unique_ptr
< SynchronousTransport
accept ()
 Blocking call which will return a synchronous client transport when a client connects More...
 
virtual void close ()
 Close this ServerTransport so that is can no longer be used to accept connections More...
 

Detailed Description

This ServerTransport is used synchronously accept client transports. The accept() call is a blocking call which will return a SynchronousTransport as soon as it connects.

<seealso cref= com::softwareag::umtransport::AsynchronousServerTransport

Member Function Documentation

std::unique_ptr<SynchronousTransport> com::softwareag::umtransport::SynchronousServerTransport::accept ( )

Blocking call which will return a synchronous client transport when a client connects

Returns
SynchronousTransport the client transport for a new connection
Exceptions
IOExceptionthrown if the server transport is closed
virtual void com::softwareag::umtransport::SynchronousServerTransport::close ( )
virtual

Close this ServerTransport so that is can no longer be used to accept connections

Implements com::softwareag::umtransport::ServerTransport.