class tcpsocket::SSLServerSocket

Implements a Secure Sockets Layer server socket

Child Classes

Implements a Secure Sockets Layer server socket

This class has no child classes.

Inheritance:


Public Methods

[more] SSLServerSocket(short bindPort, SSLContext* pCtx, in_addr_t bindAddress, int listenerBacklog) throw(SocketException)
Constructs the server socket binding to the port and optionally using the bind address and listener backlog
[more]SSLSocket acceptConnection() throw(SocketException)
Accepts a connection from the server socket
[more]void close() throw(SocketException)
Closes the server socket.
[more]SSLContext* getCTX()
Provides the SSLContext associated with the server
[more]int getSocket()
Provides the underlying socket handle
[more]void setCTX(SSLContext* pCtx)
Sets the server context
[more] ~SSLServerSocket() throw(SocketException)
Releases the server socket @throw SocketException on an error

Inherited from SSLSocket:

Public Methods

oSocket* clone() const
ostd::string getErrorMessage()
oX509Certificate* getPeerCertificate()
ovoid* getSSL()
oint getVerifyResult()
oSSLSocket& operator=(const SSLSocket& s)
osize_t receive(char* readBuffer, size_t length) throw(SSLSocketException)
osize_t receiveSome(char* readBuffer, size_t length) throw(SSLSocketException)
osize_t send(const char* sendBuffer, size_t length) throw(SSLSocketException)

Public Members

oenum con_type


Inherited from Socket:

Public Methods

obool getThrowOnClosed()
ovoid setThrowOnClosed(bool throwOnClose)

Protected Fields

oint m_socket

Member Documentation


SSLServerSocket (short bindPort, SSLContext* pCtx, in_addr_t bindAddress, int listenerBacklog) throw(SocketException)
Constructs the server socket binding to the port and optionally using the bind address and listener backlog
Parameters:
bindPort - [in] The TCP port to bind to
pCtx - [in] The SSL Context used to establish the SSL Environment
bindAddress - [in,optional] Optional address to bind to, if not specified all local address will be bound.
listenerBacklog - [in,optional] Optional depth of the listener queue. @throw SocketException on an error


~SSLServerSocket () throw(SocketException)
Releases the server socket @throw SocketException on an error


SSLSocket acceptConnection () throw(SocketException)
Accepts a connection from the server socket
Returns:
A socket connected to a client @throw SocketException on an error


void close () throw(SocketException)
Closes the server socket. Can be called out of band to cause acceptConnection() to return immediately.


int getSocket ()
Provides the underlying socket handle
Returns:
The underlying socket handle


SSLContext* getCTX ()
Provides the SSLContext associated with the server
Returns:
The curretn SSLContext


void setCTX (SSLContext* pCtx)
Sets the server context
Parameters:
pCtx - the new SSL context for the server socket

Table of Contents HTML hierarchy of classes or Java


Safmq Documentation, copyright (c) 2004-2010 Matthew J. Battey, Licensed Under Apache License Ver 2.0
Powered By: Get SAFMQ: Store and Forward Message Queue at SourceForge.net. Fast, secure and Free Open Source software downloads