Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

SslSocket Class Reference

Inheritance diagram for SslSocket:

Socket Stream List of all members.

Public Member Functions

virtual u_long bytesToRead ()
virtual int closesocket ()
virtual int connect (MYSERVER_SOCKADDR *sa, int na)
virtual int dataOnRead (int sec=0, int usec=500)
int freeSSL ()
SSL * getSSLConnection ()
virtual int rawSend (const char *buffer, int len, int flags)
virtual int recv (char *buffer, int len, int flags)
int setSSLContext (SSL_CTX *)
virtual int shutdown (int how)
int sslAccept ()
 SslSocket (Socket *)
 ~SslSocket ()

Protected Attributes

X509 * clientCert
bool externalContext
Socketsocket
SSL * sslConnection
SSL_CTX * sslContext
SSL_METHOD * sslMethod

Constructor & Destructor Documentation

SslSocket::SslSocket Socket socket  ) 
 

Constructor of the class.

SslSocket::~SslSocket  ) 
 


Member Function Documentation

u_long SslSocket::bytesToRead  )  [virtual]
 

Returns the number of bytes waiting to be read.

Reimplemented from Socket.

int SslSocket::closesocket  )  [virtual]
 

Close the socket.

Reimplemented from Socket.

int SslSocket::connect MYSERVER_SOCKADDR sa,
int  na
[virtual]
 

Connect the socket.

Reimplemented from Socket.

int SslSocket::dataOnRead int  sec = 0,
int  usec = 500
[virtual]
 

Returns the number of bytes waiting to be read.

Reimplemented from Socket.

int SslSocket::freeSSL  ) 
 

Free the SSL connection.

SSL * SslSocket::getSSLConnection  ) 
 

Returns the SSL connection.

int SslSocket::rawSend const char *  buffer,
int  len,
int  flags
[virtual]
 

Send data over the socket. Return -1 on error. This routine is accessible only from the Socket class.

Reimplemented from Socket.

int SslSocket::recv char *  buffer,
int  len,
int  flags
[virtual]
 

Receive data from the socket. Returns -1 on errors.

Reimplemented from Socket.

int SslSocket::setSSLContext SSL_CTX *  context  ) 
 

Set the SSL context.

int SslSocket::shutdown int  how  )  [virtual]
 

Shutdown the socket.

Reimplemented from Socket.

int SslSocket::sslAccept  ) 
 

SSL handshake procedure. Return nonzero on errors.


Member Data Documentation

X509* SslSocket::clientCert [protected]
 

bool SslSocket::externalContext [protected]
 

Socket* SslSocket::socket [protected]
 

SSL* SslSocket::sslConnection [protected]
 

SSL_CTX* SslSocket::sslContext [protected]
 

SSL_METHOD* SslSocket::sslMethod [protected]
 

This is used only by clients sockets.


Generated on Mon Jun 16 13:47:21 2008 for MyServer by  doxygen 1.3.9.1