#include <SSL_SOCK_Stream.h>
Inheritance diagram for ACE_SSL_SOCK_Stream
Public Types | |
typedef ACE_INET_Addr | PEER_ADDR |
Meta-type info. | |
Public Methods | |
ACE_SSL_SOCK_Stream (ACE_SSL_Context *context = ACE_SSL_Context::instance ()) | |
Constructor. | |
~ACE_SSL_SOCK_Stream (void) | |
Destructor. | |
ssize_t | send (const void *buf, size_t n, int flags) const |
ssize_t | recv (void *buf, size_t n, int flags) const |
ssize_t | send (const void *buf, size_t n) const |
Send an <n> byte buffer to the ssl socket using the semantics of <write(2)>. | |
ssize_t | recv (void *buf, size_t n) const |
Recv an <n> byte buffer from the ssl socket using the semantics of <read(2)>. | |
ssize_t | sendv (const iovec iov[], size_t n) const |
Send an <iovec> of size <n> to the ssl socket. | |
ssize_t | recvv (iovec *io_vec, const ACE_Time_Value *timeout = 0) const |
ssize_t | send (const void *buf, size_t n, int flags, const ACE_Time_Value *timeout) const |
ssize_t | recv (void *buf, size_t n, int flags, const ACE_Time_Value *timeout) const |
ssize_t | send (const void *buf, size_t n, const ACE_Time_Value *timeout) const |
ssize_t | recv (void *buf, size_t n, const ACE_Time_Value *timeout) const |
ssize_t | send (size_t n, ...) const |
Send <n> varargs messages to the connected ssl socket. | |
ssize_t | recv (size_t n, ...) const |
Recv <n> varargs messages to the connected ssl socket. | |
ssize_t | send_n (const void *buf, int n) const |
Send <n> bytes, keep trying until <n> are sent. | |
ssize_t | recv_n (void *buf, int n) const |
Recv <n> bytes, keep trying until <n> are received. | |
ssize_t | sendv_n (const iovec iov[], size_t n) const |
ssize_t | recvv_n (iovec iov[], size_t n) const |
Receive an <iovec> of size <n> to the connected socket. | |
int | close (void) |
Close down the socket. | |
void | set_handle (ACE_HANDLE fd) |
SSL* | ssl (void) const |
Return a pointer to the underlying SSL structure. | |
ssize_t | send_n (const void *buf, int n, int flags) const |
Send <n> bytes, keep trying until <n> are sent. More... | |
ssize_t | recv_n (void *buf, int n, int flags) const |
Recv <n> bytes, keep trying until <n> are sent. | |
ssize_t | send_n (const void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bytes_transferred = 0) const |
ssize_t | recv_n (void *buf, size_t len, int flags, const ACE_Time_Value *timeout, size_t *bytes_transferred = 0) const |
int | close_reader (void) |
Close down the reader. More... | |
int | close_writer (void) |
Close down the writer. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Methods | |
ACE_SOCK_Stream& | peer (void) |
Return the underlying which SSL runs atop of. | |
ssize_t | send_i (const void *buf, size_t n, int flags) const |
Underlying send() helper method common to all public send() methods. | |
ssize_t | recv_i (void *buf, size_t n, int flags, const ACE_Time_Value *timeout) const |
Underlying send() helper method common to all public send() methods. | |
Friends | |
class | ACE_SSL_SOCK_Connector |
class | ACE_SSL_SOCK_Acceptor |
This adds SSL functionality to an ACE_SOCK_IO interface by wrapping around an ACE_SSL_SOCK_Stream implementation.
|
Meta-type info.
|
|
Constructor.
|
|
Destructor.
|
|
Close down the socket.
Reimplemented from ACE_SOCK. |
|
Close down the reader. Selectively close endpoints. |
|
Close down the writer.
|
|
Return the underlying which SSL runs atop of.
|
|
Recv <n> varargs messages to the connected ssl socket.
|
|
Wait up to <timeout> amount of time to receive up to <n> bytes into <buf> (uses the <recv> call). If <recv> times out a -1 is returned with <errno == ETIME>. If it succeeds the number of bytes received is returned. |
|
Wait up to <timeout> amount of time to receive up to <n> bytes into <buf> (uses the <recv> call). If <recv> times out a -1 is returned with <errno == ETIME>. If it succeeds the number of bytes received is returned. MSG_PEEK is the only supported flag. |
|
Recv an <n> byte buffer from the ssl socket using the semantics of <read(2)>.
|
|
Recv an <n> byte buffer from the ssl socket using the semantics of <recv(3n)>. ACE+SSL supports MSG_PEEK, but no other flags at this time. |
|
Underlying send() helper method common to all public send() methods.
|
|
Try to recv exactly <len> bytes into <buf> (uses the <recv> call). The indicates how long to blocking trying to receive. If <timeout> == 0, the caller will block until action is possible, else will wait until the relative time specified in *<timeout> elapses). If <recv> blocks for longer than <timeout> the number of bytes actually read is returned with <errno == ETIME>. If a timeout does not occur, <recv_n> return <len> (i.e., the number of bytes requested to be read). |
|
Recv <n> bytes, keep trying until <n> are sent.
|
|
Recv <n> bytes, keep trying until <n> are received.
|
|
Allows a client to read from a socket without having to provide a buffer to read. This method determines how much data is in the socket, allocates a buffer of this size, reads in the data, and returns the number of bytes read. The caller is responsible for deleting the member in the <iov_base> field of <io_vec> using delete [] io_vec->iov_base. |
|
Receive an <iovec> of size <n> to the connected socket.
|
|
Send <n> varargs messages to the connected ssl socket.
|
|
Wait to to <timeout> amount of time to send up to <n> bytes into <buf> (uses the <send> call). If <send> times out a -1 is returned with <errno == ETIME>. If it succeeds the number of bytes sent is returned. |
|
Wait to to <timeout> amount of time to send up to <n> bytes into <buf> (uses the <send> call). If <send> times out a -1 is returned with <errno == ETIME>. If it succeeds the number of bytes sent is returned. No flags are supported. |
|
Send an <n> byte buffer to the ssl socket using the semantics of <write(2)>.
|
|
Send an <n> byte buffer to the ssl socket using the semantics of <send(3n)>. ACE+SSL supports no flags for sending at this time. |
|
Underlying send() helper method common to all public send() methods.
|
|
Try to send exactly <len> bytes into <buf> (uses the <send> call). If <send> blocks for longer than <timeout> the number of bytes actually sent is returned with <errno == ETIME>. If a timeout does not occur, <send_n> return <len> (i.e., the number of bytes requested to be sent). |
|
Send <n> bytes, keep trying until <n> are sent.
|
|
Send <n> bytes, keep trying until <n> are sent.
|
|
Send an <iovec> of size <n> to the ssl socket.
|
|
Send an <iovec> of size <n> to the connected socket. Will block until all bytes are sent or an error occurs. |
|
Overridden set_handle() method. Only an ACE_SSL_SOCK_Acceptor or ACE_SSL_SOCK_Connector should access this method since some state in the underlying "ssl_" data structure is set during SSL connection establishment. Reimplemented from ACE_SSL_SOCK. |
|
Return a pointer to the underlying SSL structure.
|
|
|
|
|
|
Declare the dynamic allocation hooks.
|