Go to the source code of this file.
Classes | |
struct | write_req_t |
Macros | |
#define | PIPENAME "/tmp/echo.sock" |
Functions | |
void | alloc_buffer (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) |
void | echo_read (uv_stream_t *client, ssize_t nread, const uv_buf_t *buf) |
void | echo_write (uv_write_t *req, int status) |
void | free_write_req (uv_write_t *req) |
int | main () |
void | on_new_connection (uv_stream_t *server, int status) |
void | remove_sock (int sig) |
Variables | |
uv_loop_t * | loop |
#define PIPENAME "/tmp/echo.sock" |
Definition at line 9 of file libuv/docs/code/pipe-echo-server/main.c.
void alloc_buffer | ( | uv_handle_t * | handle, |
size_t | suggested_size, | ||
uv_buf_t * | buf | ||
) |
Definition at line 25 of file libuv/docs/code/pipe-echo-server/main.c.
void echo_read | ( | uv_stream_t * | client, |
ssize_t | nread, | ||
const uv_buf_t * | buf | ||
) |
Definition at line 37 of file libuv/docs/code/pipe-echo-server/main.c.
void echo_write | ( | uv_write_t * | req, |
int | status | ||
) |
Definition at line 30 of file libuv/docs/code/pipe-echo-server/main.c.
void free_write_req | ( | uv_write_t * | req | ) |
Definition at line 19 of file libuv/docs/code/pipe-echo-server/main.c.
int main | ( | ) |
Definition at line 76 of file libuv/docs/code/pipe-echo-server/main.c.
void on_new_connection | ( | uv_stream_t * | server, |
int | status | ||
) |
Definition at line 54 of file libuv/docs/code/pipe-echo-server/main.c.
void remove_sock | ( | int | sig | ) |
Definition at line 70 of file libuv/docs/code/pipe-echo-server/main.c.
uv_loop_t* loop |
Definition at line 12 of file libuv/docs/code/pipe-echo-server/main.c.