Functions | Variables
test-tcp-open.c File Reference
#include "uv.h"
#include "task.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for test-tcp-open.c:

Go to the source code of this file.

Functions

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)
 

Variables

static uv_tcp_t client
 
static int close_cb_called = 0
 
static int connect_cb_called = 0
 
static uv_connect_t connect_req
 
static int shutdown_cb_called = 0
 
static uv_shutdown_t shutdown_req
 
static int shutdown_requested = 0
 
static uv_timer_t tm
 
static int write_cb_called = 0
 
static uv_write_t write_req
 

Function Documentation

◆ alloc_cb()

static void alloc_cb ( uv_handle_t handle,
size_t  suggested_size,
uv_buf_t buf 
)
static

Definition at line 88 of file test-tcp-open.c.

◆ close_cb()

static void close_cb ( uv_handle_t handle)
static

Definition at line 98 of file test-tcp-open.c.

◆ close_socket()

static void close_socket ( uv_os_sock_t  sock)
static

Definition at line 77 of file test-tcp-open.c.

◆ connect1_cb()

static void connect1_cb ( uv_connect_t req,
int  status 
)
static

Definition at line 209 of file test-tcp-open.c.

◆ connect_cb()

static void connect_cb ( uv_connect_t req,
int  status 
)
static

Definition at line 185 of file test-tcp-open.c.

◆ create_tcp_socket()

static uv_os_sock_t create_tcp_socket ( void  )
static

Definition at line 54 of file test-tcp-open.c.

◆ read1_cb()

static void read1_cb ( uv_stream_t tcp,
ssize_t  nread,
const uv_buf_t buf 
)
static

Definition at line 127 of file test-tcp-open.c.

◆ read_cb()

static void read_cb ( uv_stream_t tcp,
ssize_t  nread,
const uv_buf_t buf 
)
static

Definition at line 113 of file test-tcp-open.c.

◆ shutdown_cb()

static void shutdown_cb ( uv_shutdown_t req,
int  status 
)
static

Definition at line 104 of file test-tcp-open.c.

◆ startup()

static void startup ( void  )
static

Definition at line 45 of file test-tcp-open.c.

◆ TEST_IMPL() [1/5]

TEST_IMPL ( tcp_open  )

Definition at line 236 of file test-tcp-open.c.

◆ TEST_IMPL() [2/5]

TEST_IMPL ( tcp_open_bound  )

Definition at line 311 of file test-tcp-open.c.

◆ TEST_IMPL() [3/5]

TEST_IMPL ( tcp_open_connected  )

Definition at line 334 of file test-tcp-open.c.

◆ TEST_IMPL() [4/5]

TEST_IMPL ( tcp_open_twice  )

Definition at line 284 of file test-tcp-open.c.

◆ TEST_IMPL() [5/5]

TEST_IMPL ( tcp_write_ready  )

Definition at line 368 of file test-tcp-open.c.

◆ timer_cb()

static void timer_cb ( uv_timer_t handle)
static

Definition at line 175 of file test-tcp-open.c.

◆ write1_cb()

static void write1_cb ( uv_write_t req,
int  status 
)
static

Definition at line 154 of file test-tcp-open.c.

◆ write_cb()

static void write_cb ( uv_write_t req,
int  status 
)
static

Definition at line 142 of file test-tcp-open.c.

Variable Documentation

◆ client

uv_tcp_t client
static

Definition at line 42 of file test-tcp-open.c.

◆ close_cb_called

int close_cb_called = 0
static

Definition at line 36 of file test-tcp-open.c.

◆ connect_cb_called

int connect_cb_called = 0
static

Definition at line 34 of file test-tcp-open.c.

◆ connect_req

uv_connect_t connect_req
static

Definition at line 38 of file test-tcp-open.c.

◆ shutdown_cb_called

int shutdown_cb_called = 0
static

Definition at line 32 of file test-tcp-open.c.

◆ shutdown_req

uv_shutdown_t shutdown_req
static

Definition at line 39 of file test-tcp-open.c.

◆ shutdown_requested

int shutdown_requested = 0
static

Definition at line 33 of file test-tcp-open.c.

◆ tm

uv_timer_t tm
static

Definition at line 41 of file test-tcp-open.c.

◆ write_cb_called

int write_cb_called = 0
static

Definition at line 35 of file test-tcp-open.c.

◆ write_req

Definition at line 40 of file test-tcp-open.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:33