#include <ipv4_udp.h>
Public Types | |
typedef ConexusPointer< UDP > | pointer |
Public Member Functions | |
~UDP () throw () | |
virtual void | open () throw ( open_exception ) |
virtual void | connect () throw ( connect_exception ) |
virtual void | connect (const Conexus::IPv4::Address &a) throw ( connect_exception ) |
Static Public Member Functions | |
static pointer | create (Context::pointer context, uint16_t localport=0, uint16_t remoteport=0) |
static pointer | create (Context::pointer context, uint32_t local_if, uint16_t localport, uint16_t remoteport) |
static pointer | create (Context::pointer context, const std::string &local_if, uint16_t localport=0, uint16_t remoteport=0) |
Protected Member Functions | |
virtual size_t | write_data (const Data data, Timeout timeout) throw ( write_exception ) |
virtual Data | read_data (size_t s, Timeout timeout) throw ( read_exception ) |
Protected Attributes | |
bool | m_want_write |
Internally used when an SSL_read indicates that it needs to block on write. | |
bool | m_want_read |
Similar to m_want_write, this is used to indicate a write blocked on a WANT_READ. | |
Private Member Functions | |
UDP (Context::pointer context, uint32_t local_if, uint16_t localport, uint16_t remoteport) | |
UDP (Context::pointer context, const std::string &local_if, uint16_t localport, uint16_t remoteport) |
typedef ConexusPointer<UDP> Conexus::SSL::IPv4::UDP::pointer |
Reimplemented from Conexus::IPv4::UDP.
Conexus::SSL::IPv4::UDP::UDP | ( | Context::pointer | context, | |
uint32_t | local_if, | |||
uint16_t | localport, | |||
uint16_t | remoteport | |||
) | [private] |
Conexus::SSL::IPv4::UDP::UDP | ( | Context::pointer | context, | |
const std::string & | local_if, | |||
uint16_t | localport, | |||
uint16_t | remoteport | |||
) | [private] |
Conexus::SSL::IPv4::UDP::~UDP | ( | ) | throw () [virtual] |
Reimplemented from Conexus::IPv4::UDP.
void Conexus::SSL::IPv4::UDP::connect | ( | const Conexus::IPv4::Address & | a | ) | throw ( connect_exception ) [virtual] |
void Conexus::SSL::IPv4::UDP::connect | ( | ) | throw ( connect_exception ) [virtual] |
UDP::pointer Conexus::SSL::IPv4::UDP::create | ( | Context::pointer | context, | |
const std::string & | local_if, | |||
uint16_t | localport = 0 , |
|||
uint16_t | remoteport = 0 | |||
) | [static] |
UDP::pointer Conexus::SSL::IPv4::UDP::create | ( | Context::pointer | context, | |
uint32_t | local_if, | |||
uint16_t | localport, | |||
uint16_t | remoteport | |||
) | [static] |
UDP::pointer Conexus::SSL::IPv4::UDP::create | ( | Context::pointer | context, | |
uint16_t | localport = 0 , |
|||
uint16_t | remoteport = 0 | |||
) | [static] |
void Conexus::SSL::IPv4::UDP::open | ( | ) | throw ( open_exception ) [virtual] |
Reimplemented from Conexus::Socket.
References Conexus::FileDescriptor::m_fd, and Conexus::SSL::SSL::set_bio().
Data Conexus::SSL::IPv4::UDP::read_data | ( | size_t | s, | |
Timeout | timeout | |||
) | throw ( read_exception ) [protected, virtual] |
Reimplemented from Conexus::Socket.
References Conexus::Data::resize(), Conexus::Data::set_current_time(), Conexus::Data::size(), Conexus::SOCKET_BOUND, Conexus::throw_read_exception(), and Conexus::throw_ssl_exception().
size_t Conexus::SSL::IPv4::UDP::write_data | ( | const Data | data, | |
Timeout | timeout | |||
) | throw ( write_exception ) [protected, virtual] |
Reimplemented from Conexus::IPv4::UDP.
References Conexus::SOCKET_CONNECTED, Conexus::throw_ssl_exception(), and Conexus::throw_write_exception().
bool Conexus::SSL::IPv4::UDP::m_want_read [protected] |
Similar to m_want_write, this is used to indicate a write blocked on a WANT_READ.
Again, with a write we are not concerned with a WANT_WRITE since that is the normal blocking condition.
bool Conexus::SSL::IPv4::UDP::m_want_write [protected] |
Internally used when an SSL_read indicates that it needs to block on write.
For SSL_read we are not concerned with WANT_READ since the block on read is the normal condition when reading.