Clases |
struct | st_vio |
'defines' |
#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) (vio)->peer_addr(vio, buf, prt) |
#define | vio_in_addr(vio, in) (vio)->in_addr(vio, in) |
#define | vio_timeout(vio, which, seconds) (vio)->timeout(vio, which, seconds) |
Enumeraciones |
enum | enum_vio_type {
VIO_CLOSED,
VIO_TYPE_TCPIP,
VIO_TYPE_SOCKET,
VIO_TYPE_NAMEDPIPE,
VIO_TYPE_SSL,
VIO_TYPE_SHARED_MEMORY,
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,
SSL_TYPE_NOT_SPECIFIED = -1,
SSL_TYPE_NONE,
SSL_TYPE_ANY,
SSL_TYPE_X509,
SSL_TYPE_SPECIFIED
} |
Funciones |
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) |
int | vio_read (Vio *vio, gptr buf, int size) |
int | vio_read_buff (Vio *vio, gptr buf, int size) |
int | vio_write (Vio *vio, const gptr buf, int 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) |
void | vio_in_addr (Vio *vio, struct in_addr *in) |
my_bool | vio_poll_read (Vio *vio, uint timeout) |
void | vio_end (void) |