Secure socket buffer. More...
#include <secure.h>


Public Member Functions | |
| bool | _flush (void) |
| bool | _pending (void) |
| Check for pending tcp or ssl data. | |
| size_t | _pull (char *address, size_t size) |
| size_t | _push (const char *address, size_t size) |
| void | close (void) |
| Close active connection. | |
| bool | is_secure (void) |
| void | open (const char *host, const char *service, size_t size=536) |
| Connect a ssl client session to a specific host uri. | |
| void | release (void) |
| SSLBuffer (const TCPServer *server, secure::server_t context, size_t size=536) | |
| SSLBuffer (secure::client_t context) | |
Protected Attributes | |
| secure::bufio_t | bio |
| bool | server |
| secure::session_t | ssl |
| bool | verify |
Secure socket buffer.
This is used to create ssl socket connections for both clients and servers. The use depends in part on the type of context created and passed at construction time. If no context is passed (NULL), then this reverts to TCPBuffer behavior.
Definition at line 216 of file secure.h.
| bool ucommon::SSLBuffer::_pending | ( | void | ) | [virtual] |
| void ucommon::SSLBuffer::open | ( | const char * | host, | |
| const char * | service, | |||
| size_t | size = 536 | |||
| ) |
Connect a ssl client session to a specific host uri.
If the socket was already connected, it is automatically closed first.
| host | we are connecting to. | |
| service | to connect to. | |
| size | of buffer and tcp fragments. |
Reimplemented from TCPBuffer.
1.6.1