Virtual I/O layer, only used with TCP/IP sockets at the moment. More...
#include <vio.h>
Public Member Functions | |
| Vio (int sd) | |
| int | close () |
| size_t | read (unsigned char *buf, size_t size) |
| size_t | write (const unsigned char *buf, size_t size) |
| int | blocking (bool set_blocking_mode, bool *old_mode) |
| int | fastsend () |
| int32_t | keepalive (bool set_keep_alive) |
| bool | should_retry () const |
| bool | was_interrupted () const |
| bool | peer_addr (char *buf, uint16_t *port, size_t buflen) const |
| void | timeout (bool is_sndtimeo, int32_t timeout) |
| int | get_errno () const |
| int | get_fd () const |
| char * | get_read_pos () const |
| char * | get_read_end () const |
Private Attributes | |
| bool | closed |
| int | sd |
| int | fcntl_mode |
| struct sockaddr_storage | local |
| struct sockaddr_storage | remote |
| char * | read_pos |
| char * | read_end |
Virtual I/O layer, only used with TCP/IP sockets at the moment.
| drizzle_plugin::Vio::Vio | ( | int | sd | ) |
| int drizzle_plugin::Vio::blocking | ( | bool | set_blocking_mode, |
| bool * | old_mode | ||
| ) |
| int drizzle_plugin::Vio::close | ( | void | ) |
| int drizzle_plugin::Vio::fastsend | ( | ) |
| int drizzle_plugin::Vio::get_errno | ( | ) | const |
| int drizzle_plugin::Vio::get_fd | ( | ) | const |
| char * drizzle_plugin::Vio::get_read_end | ( | ) | const |
| char * drizzle_plugin::Vio::get_read_pos | ( | ) | const |
| int32_t drizzle_plugin::Vio::keepalive | ( | bool | set_keep_alive | ) |
| bool drizzle_plugin::Vio::peer_addr | ( | char * | buf, |
| uint16_t * | port, | ||
| size_t | buflen | ||
| ) | const |
| size_t drizzle_plugin::Vio::read | ( | unsigned char * | buf, |
| size_t | size | ||
| ) |
| bool drizzle_plugin::Vio::should_retry | ( | ) | const |
| void drizzle_plugin::Vio::timeout | ( | bool | is_sndtimeo, |
| int32_t | timeout | ||
| ) |
| bool drizzle_plugin::Vio::was_interrupted | ( | ) | const |
| size_t drizzle_plugin::Vio::write | ( | const unsigned char * | buf, |
| size_t | size | ||
| ) |