YAZ
5.34.0
|
socket-pipe header More...
Go to the source code of this file.
Typedefs | |
typedef struct yaz_spipe * | yaz_spipe_t |
YAZ socket pipe opaque pointer. More... | |
Functions | |
yaz_spipe_t | yaz_spipe_create (int port_to_use, WRBUF *err_msg) |
create socket pipe More... | |
void | yaz_spipe_destroy (yaz_spipe_t p) |
destroys socket pipe More... | |
int | yaz_spipe_get_read_fd (yaz_spipe_t p) |
returns reading socket More... | |
int | yaz_spipe_get_write_fd (yaz_spipe_t p) |
returns writing socket More... | |
socket-pipe header
Definition in file spipe.h.
typedef struct yaz_spipe* yaz_spipe_t |
yaz_spipe_t yaz_spipe_create | ( | int | port_to_use, |
WRBUF * | err_msg | ||
) |
create socket pipe
port_to_use | port that we temporarily bind to |
err_msg | error message reference (0 if not to be set) |
Definition at line 101 of file spipe.c.
References yaz_spipe::m_fd, yaz_spipe::m_socket, nonblock(), wrbuf_printf(), xfree, xmalloc, YAZ_INVALID_SOCKET, YAZ_SOCKLEN_T, yaz_spipe_close(), and yaz_spipe_destroy().
void yaz_spipe_destroy | ( | yaz_spipe_t | p | ) |
destroys socket pipe
p | socket pipe pointer |
Definition at line 255 of file spipe.c.
References yaz_spipe::m_fd, yaz_spipe::m_socket, xfree, and yaz_spipe_close().
Referenced by yaz_spipe_create().
int yaz_spipe_get_read_fd | ( | yaz_spipe_t | p | ) |
returns reading socket
p | socket pipe pointer |
Definition at line 266 of file spipe.c.
References yaz_spipe::m_fd.
int yaz_spipe_get_write_fd | ( | yaz_spipe_t | p | ) |
returns writing socket
p | socket pipe pointer |
Definition at line 271 of file spipe.c.
References yaz_spipe::m_fd.