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, size_t buflen, uint16_t &port) const |
| void | timeout (bool is_sndtimeo, int32_t timeout) |
| int | get_errno () const |
| int | get_fd () const |
Private Attributes | |
| int | sd |
| int | fcntl_mode |
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 |
| int32_t drizzle_plugin::Vio::keepalive | ( | bool | set_keep_alive | ) |
| bool drizzle_plugin::Vio::peer_addr | ( | char * | buf, |
| size_t | buflen, | ||
| uint16_t & | port | ||
| ) | 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 | ||
| ) |