组合类型 |
struct | st_vio |
宏定义 |
#define | VIO_LOCALHOST 1 |
#define | VIO_BUFFERED_READ 2 |
#define | VIO_READ_BUFFER_SIZE 16384 |
#define | HANDLE void * |
#define | vio_delete(vio) (vio)->viodelete(vio) |
#define | vio_errno(vio) (vio)->vioerrno(vio) |
#define | vio_read(vio, buf, size) ((vio)->read)(vio,buf,size) |
#define | vio_write(vio, buf, size) ((vio)->write)(vio, buf, size) |
#define | vio_blocking(vio, set_blocking_mode, old_mode) (vio)->vioblocking(vio, set_blocking_mode, old_mode) |
#define | vio_is_blocking(vio) (vio)->is_blocking(vio) |
#define | vio_fastsend(vio) (vio)->fastsend(vio) |
#define | vio_keepalive(vio, set_keep_alive) (vio)->viokeepalive(vio, set_keep_alive) |
#define | vio_should_retry(vio) (vio)->should_retry(vio) |
#define | vio_was_interrupted(vio) (vio)->was_interrupted(vio) |
#define | vio_close(vio) ((vio)->vioclose)(vio) |
#define | vio_peer_addr(vio, buf, prt, buflen) (vio)->peer_addr(vio, buf, prt, buflen) |
#define | vio_timeout(vio, which, seconds) (vio)->timeout(vio, which, seconds) |
枚举 |
enum | enum_vio_type {
VIO_CLOSED,
VIO_TYPE_TCPIP,
VIO_TYPE_SOCKET,
VIO_TYPE_NAMEDPIPE,
VIO_TYPE_SSL,
VIO_TYPE_SHARED_MEMORY
} |
enum | SSL_type {
SSL_TYPE_NOT_SPECIFIED = -1,
SSL_TYPE_NONE,
SSL_TYPE_ANY,
SSL_TYPE_X509,
SSL_TYPE_SPECIFIED
} |
函数 |
Vio * | vio_new (my_socket sd, enum enum_vio_type type, uint flags) |
void | vio_delete (Vio *vio) |
int | vio_close (Vio *vio) |
void | vio_reset (Vio *vio, enum enum_vio_type type, my_socket sd, HANDLE hPipe, uint flags) |
size_t | vio_read (Vio *vio, uchar *buf, size_t size) |
size_t | vio_read_buff (Vio *vio, uchar *buf, size_t size) |
size_t | vio_write (Vio *vio, const uchar *buf, size_t size) |
int | vio_blocking (Vio *vio, my_bool onoff, my_bool *old_mode) |
my_bool | vio_is_blocking (Vio *vio) |
int | vio_fastsend (Vio *vio) |
int | vio_keepalive (Vio *vio, my_bool onoff) |
my_bool | vio_should_retry (Vio *vio) |
my_bool | vio_was_interrupted (Vio *vio) |
const char * | vio_description (Vio *vio) |
enum enum_vio_type | vio_type (Vio *vio) |
int | vio_errno (Vio *vio) |
my_socket | vio_fd (Vio *vio) |
my_bool | vio_peer_addr (Vio *vio, char *buf, uint16 *port, size_t buflen) |
my_bool | vio_poll_read (Vio *vio, uint timeout) |
my_bool | vio_peek_read (Vio *vio, uint *bytes) |
ssize_t | vio_pending (Vio *vio) |
void | vio_end (void) |