
Go to the source code of this file.
Classes | |
| struct | write_req_t |
Macros | |
| #define | DEFAULT_BACKLOG 128 |
| #define | DEFAULT_PORT 7000 |
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_close (uv_handle_t *handle) |
| void | on_new_connection (uv_stream_t *server, int status) |
Variables | |
| struct sockaddr_in | addr |
| uv_loop_t * | loop |
| #define DEFAULT_BACKLOG 128 |
Definition at line 7 of file libuv/docs/code/tcp-echo-server/main.c.
| #define DEFAULT_PORT 7000 |
Definition at line 6 of file libuv/docs/code/tcp-echo-server/main.c.
| void alloc_buffer | ( | uv_handle_t * | handle, |
| size_t | suggested_size, | ||
| uv_buf_t * | buf | ||
| ) |
Definition at line 23 of file libuv/docs/code/tcp-echo-server/main.c.
| void echo_read | ( | uv_stream_t * | client, |
| ssize_t | nread, | ||
| const uv_buf_t * | buf | ||
| ) |
Definition at line 39 of file libuv/docs/code/tcp-echo-server/main.c.
| void echo_write | ( | uv_write_t * | req, |
| int | status | ||
| ) |
Definition at line 32 of file libuv/docs/code/tcp-echo-server/main.c.
| void free_write_req | ( | uv_write_t * | req | ) |
Definition at line 17 of file libuv/docs/code/tcp-echo-server/main.c.
| int main | ( | ) |
Definition at line 72 of file libuv/docs/code/tcp-echo-server/main.c.
| static void on_close | ( | uv_handle_t * | handle | ) |
Definition at line 28 of file libuv/docs/code/tcp-echo-server/main.c.
| void on_new_connection | ( | uv_stream_t * | server, |
| int | status | ||
| ) |
Definition at line 55 of file libuv/docs/code/tcp-echo-server/main.c.
| struct sockaddr_in addr |
Definition at line 10 of file libuv/docs/code/tcp-echo-server/main.c.
| uv_loop_t* loop |
Definition at line 9 of file libuv/docs/code/tcp-echo-server/main.c.