#include "uv.h"
#include "task.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
|
static void | alloc_cb (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) |
|
static void | close_cb (uv_handle_t *handle) |
|
static void | close_socket (uv_os_sock_t sock) |
|
static void | connect1_cb (uv_connect_t *req, int status) |
|
static void | connect_cb (uv_connect_t *req, int status) |
|
static uv_os_sock_t | create_tcp_socket (void) |
|
static void | read1_cb (uv_stream_t *tcp, ssize_t nread, const uv_buf_t *buf) |
|
static void | read_cb (uv_stream_t *tcp, ssize_t nread, const uv_buf_t *buf) |
|
static void | shutdown_cb (uv_shutdown_t *req, int status) |
|
static void | startup (void) |
|
| TEST_IMPL (tcp_open) |
|
| TEST_IMPL (tcp_open_bound) |
|
| TEST_IMPL (tcp_open_connected) |
|
| TEST_IMPL (tcp_open_twice) |
|
| TEST_IMPL (tcp_write_ready) |
|
static void | timer_cb (uv_timer_t *handle) |
|
static void | write1_cb (uv_write_t *req, int status) |
|
static void | write_cb (uv_write_t *req, int status) |
|
◆ alloc_cb()
◆ close_cb()
◆ close_socket()
◆ connect1_cb()
◆ connect_cb()
◆ create_tcp_socket()
◆ read1_cb()
◆ read_cb()
◆ shutdown_cb()
◆ startup()
static void startup |
( |
void |
| ) |
|
|
static |
◆ TEST_IMPL() [1/5]
◆ TEST_IMPL() [2/5]
TEST_IMPL |
( |
tcp_open_bound |
| ) |
|
◆ TEST_IMPL() [3/5]
TEST_IMPL |
( |
tcp_open_connected |
| ) |
|
◆ TEST_IMPL() [4/5]
TEST_IMPL |
( |
tcp_open_twice |
| ) |
|
◆ TEST_IMPL() [5/5]
TEST_IMPL |
( |
tcp_write_ready |
| ) |
|
◆ timer_cb()
◆ write1_cb()
◆ write_cb()
◆ client
◆ close_cb_called
◆ connect_cb_called
int connect_cb_called = 0 |
|
static |
◆ connect_req
◆ shutdown_cb_called
int shutdown_cb_called = 0 |
|
static |
◆ shutdown_req
◆ shutdown_requested
int shutdown_requested = 0 |
|
static |
◆ tm
◆ write_cb_called
◆ write_req