#include <SSLSocket.h>
Inheritance diagram for CODEX_SSL::SSLSocket:


Public Methods | |
| SSLSocket (SSL_CTX *ctx, int domain=PF_INET, int type=SOCK_STREAM, int protocol=0, bool blocking=false) | |
| Constructor for SSL sockets. | |
| SSLSocket (const SSLSocket &aOther) | |
| Copy constructor. | |
| virtual | ~SSLSocket () |
| Destructor. | |
| int | set_fd (fd_set *fd_bitmap, StateType s) const |
| Fill file descriptor bitmap. | |
| bool | isset_fd (const fd_set *fd_bitmap, StateType s) const |
| Check file descriptor bitmap. | |
| size_t | readFrom (void *output, size_t maxSize=1024) const |
| This reimplements CODEX_Quorum::SocketBase::readFrom() to handle OpenSSL's I/O. | |
Protected Methods | |
| CODEX_Quorum::SocketBase * | clone () |
| Subclass-aware object duplication. | |
| void | connect (const CODEX_Quorum::RemoteServer &server) |
| This reimplements CODEX_Quorum::SocketBase::connect() to add SSL configuration. | |
| void | finish_accept () |
| This reimplements CODEX_Quorum::SocketBase::finish_accept() to add SSL configuration. | |
| int | internal_write (const unsigned char *output, size_t maxSize) const |
| This reimplements CODEX_Quorum::SocketBase::internal_write() to handle OpenSSL's I/O. | |
It is important to note that this class does not handle all aspects of setting up SSL, only the specific socket actions. Initializing SSL, maintaining certificates, and so forth will still need to be taken care of externally.
Definition at line 42 of file SSLSocket.h.
|
||||||||||||||||||||||||
|
Constructor for SSL sockets.
Definition at line 31 of file SSLSocket.cc. Referenced by clone(). |
|
|
Subclass-aware object duplication. This is similar to a copy constructor except that, as a virtual function, it can be overridden in order for derived classes to return copies of themselves that have the correct type, yet which use an identical interface from the base class. Each class in the SocketBase hierarchy overrides this method to use its own copy constructor. Reimplemented from CODEX_Quorum::SocketBase. Definition at line 216 of file SSLSocket.cc. References CODEX_Quorum::SocketBase::SocketBase(), and SSLSocket(). |
|
||||||||||||
|
Check file descriptor bitmap. The base-class method will be called initially to determine if the socket needs to be examined.
Reimplemented from CODEX_Quorum::SocketBase. Definition at line 91 of file SSLSocket.cc. |
|
||||||||||||
|
Fill file descriptor bitmap. The base-class method will be called if it is determined that setting the bitmap is appropriate.
Reimplemented from CODEX_Quorum::SocketBase. Definition at line 65 of file SSLSocket.cc. |
1.2.18