Inheritance diagram for DcmTransportConnection:
Public Member Functions | |
DcmTransportConnection (int openSocket) | |
constructor. | |
virtual | ~DcmTransportConnection () |
destructor | |
virtual DcmTransportLayerStatus | serverSideHandshake ()=0 |
performs server side handshake on established socket. | |
virtual DcmTransportLayerStatus | clientSideHandshake ()=0 |
performs client side handshake on established socket. | |
virtual DcmTransportLayerStatus | renegotiate (const char *newSuite)=0 |
performs a re-negotiation of the connection with different connection parameters. | |
virtual ssize_t | read (void *buf, size_t nbyte)=0 |
attempts to read nbyte bytes from the transport connection and writes them into the given buffer. | |
virtual ssize_t | write (void *buf, size_t nbyte)=0 |
attempts to write nbyte bytes from the given buffer to the transport connection. | |
virtual void | close ()=0 |
Closes the transport connection. | |
virtual unsigned long | getPeerCertificateLength ()=0 |
returns the size in bytes of the peer certificate of a secure connection. | |
virtual unsigned long | getPeerCertificate (void *buf, unsigned long bufLen)=0 |
virtual OFBool | networkDataAvailable (int timeout)=0 |
checks if data is available to be read on the transport connection. | |
virtual OFBool | isTransparentConnection ()=0 |
returns OFTrue if this connection is a transparent TCP connection, OFFalse if the connection is a secure connection. | |
virtual void | dumpConnectionParameters (ostream &out)=0 |
prints the characteristics of the current connection on the given output stream. | |
virtual const char * | errorString (DcmTransportLayerStatus code)=0 |
returns an error string for a given error code. | |
Static Public Member Functions | |
static OFBool | selectReadableAssociation (DcmTransportConnection *connections[], int connCount, int timeout) |
indicates which of the specified transport connections is ready for reading. | |
Protected Member Functions | |
int | getSocket () |
returns the socket file descriptor managed by this object. | |
Private Member Functions | |
DcmTransportConnection (const DcmTransportConnection &) | |
private undefined copy constructor | |
DcmTransportConnection & | operator= (const DcmTransportConnection &) |
private undefined assignment operator | |
Static Private Member Functions | |
static OFBool | safeSelectReadableAssociation (DcmTransportConnection *connections[], int connCount, int timeout) |
indicates which of the specified transport connections is ready for reading. | |
static OFBool | fastSelectReadableAssociation (DcmTransportConnection *connections[], int connCount, int timeout) |
indicates which of the specified transport connections is ready for reading. | |
Private Attributes | |
int | theSocket |
the socket file descriptor used by the transport connection. |
Definition at line 49 of file dcmtrans.h.
|
constructor.
|
|
performs client side handshake on established socket. This function is used to establish a secure transport connection over the established TCP connection. Abstract method.
Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
Closes the transport connection. If a secure connection is used, a closure alert is sent before the connection is closed. Abstract method. Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
prints the characteristics of the current connection on the given output stream.
Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
returns an error string for a given error code.
Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
indicates which of the specified transport connections is ready for reading. If none of the specified transport connections is ready for reading, this method blocks up to the specified timeout interval or until one of the connections becomes readable, whatever occurs first. This method uses the select() system call. It may only be used with an array of transparent TCP transport connections. This precondition must be assured by the caller.
|
|
returns the size in bytes of the peer certificate of a secure connection. May return 0 if connection is transparent TCP/IP.
Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
returns the socket file descriptor managed by this object.
Definition at line 169 of file dcmtrans.h. References theSocket. |
|
checks if data is available to be read on the transport connection. Abstract method.
Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
attempts to read nbyte bytes from the transport connection and writes them into the given buffer. Abstract method.
Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
performs a re-negotiation of the connection with different connection parameters. Used to change the parameters of the secure transport connection. Abstract method.
Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
indicates which of the specified transport connections is ready for reading. If none of the specified transport connections is ready for reading, this method blocks up to the specified timeout interval or until one of the connections becomes readable, whatever occurs first. This method uses a safe approach that also works with secure transport connections, but which may be slower than a select() system call and consumes slightly more computation time.
|
|
indicates which of the specified transport connections is ready for reading. If none of the specified transport connections is ready for reading, this method blocks up to the specified timeout interval or until one of the connections becomes readable, whatever occurs first.
|
|
performs server side handshake on established socket. This function is used to establish a secure transport connection over the established TCP connection. Abstract method.
Implemented in DcmTCPConnection, and DcmTLSConnection. |
|
attempts to write nbyte bytes from the given buffer to the transport connection. Abstract method.
Implemented in DcmTCPConnection, and DcmTLSConnection. |