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
- 
 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
 
 - 
SSLSocket acceptConnection() throw(SocketException)
 - 
 Accepts a connection from the server socket
 
 - 
void close() throw(SocketException)
 - 
 Closes the server socket.
 - 
SSLContext* getCTX()
 - 
 Provides the SSLContext associated with the server
 
 - 
int getSocket()
 - 
 Provides the underlying socket handle
 
 - 
void setCTX(SSLContext* pCtx)
 - 
 Sets the server context
 
 - 
 ~SSLServerSocket() throw(SocketException)
 - 
 Releases the server socket
 @throw SocketException on an error
 
Inherited from SSLSocket:
Public Methods
- 
Socket* clone() const 
- 
std::string getErrorMessage()
- 
X509Certificate* getPeerCertificate()
- 
void* getSSL()
- 
int getVerifyResult()
- 
SSLSocket& operator=(const SSLSocket& s)
- 
size_t receive(char* readBuffer, size_t length) throw(SSLSocketException)
- 
size_t receiveSome(char* readBuffer, size_t length) throw(SSLSocketException)
- 
size_t send(const char* sendBuffer, size_t length) throw(SSLSocketException)
         
Public Members
enum  con_type
Inherited from Socket:
Public Methods
- 
bool getThrowOnClosed()
- 
void setThrowOnClosed(bool throwOnClose)
  
Protected Fields
int 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: