DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions
DcmTransportLayer Class Reference

factory class which creates transport layer connections. More...

+ Inheritance diagram for DcmTransportLayer:

List of all members.

Public Member Functions

 DcmTransportLayer (int)
 constructor.
virtual ~DcmTransportLayer ()
 destructor
virtual DcmTransportConnectioncreateConnection (int openSocket, OFBool useSecureLayer)
 factory method that returns a new transport connection for the given socket.

Private Member Functions

 DcmTransportLayer (const DcmTransportLayer &)
 private undefined copy constructor
DcmTransportLayeroperator= (const DcmTransportLayer &)
 private undefined assignment operator

Detailed Description

factory class which creates transport layer connections.

Base class only supports transparent TCP connections, subclasses may also support secure transport layer connections.


Constructor & Destructor Documentation

constructor.

#param networkRole network role to be used by the application, influences the choice of the secure transport layer code.


Member Function Documentation

virtual DcmTransportConnection* DcmTransportLayer::createConnection ( int  openSocket,
OFBool  useSecureLayer 
) [virtual]

factory method that returns a new transport connection for the given socket.

Depending on the second parameter, either a transparent or a secure connection is established. If the object cannot be created (e. g. because no secure layer is available), returns NULL.

Parameters:
openSocketTCP/IP socket to be used for the transport connection. the connection must already be establised on socket level. If a non-null pointer is returned, the new connection object takes over control of the socket.
useSecureLayerif true, a secure layer is used. If false, a transparent layer is used.
Returns:
pointer to new connection object if successful, NULL otherwise.

Reimplemented in DcmTLSTransportLayer.


The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027