Classes | Functions | Variables
test-ipc-send-recv.c File Reference
#include "uv.h"
#include "task.h"
#include <stdio.h>
#include <string.h>
Include dependency graph for test-ipc-send-recv.c:

Go to the source code of this file.

Classes

struct  echo_ctx
 
union  handles
 
struct  test_ctx
 

Functions

static void alloc_cb (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
 
static void connect_cb (uv_connect_t *req, int status)
 
int ipc_send_recv_helper (void)
 
void ipc_send_recv_helper_threadproc (void *arg)
 
static void listen_cb (uv_stream_t *handle, int status)
 
static void read_cb (uv_stream_t *handle, ssize_t nread, const uv_buf_t *rdbuf)
 
static void recv_cb (uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf)
 
int run_ipc_send_recv_helper (uv_loop_t *loop, int inprocess)
 
static int run_ipc_send_recv_pipe (int inprocess)
 
static int run_ipc_send_recv_tcp (int inprocess)
 
static int run_test (int inprocess)
 
static void send_recv_start (void)
 
void spawn_helper (uv_pipe_t *channel, uv_process_t *process, const char *helper)
 
 TEST_IMPL (ipc_send_recv_pipe)
 
 TEST_IMPL (ipc_send_recv_pipe_inprocess)
 
 TEST_IMPL (ipc_send_recv_tcp)
 
 TEST_IMPL (ipc_send_recv_tcp_inprocess)
 
static void write2_cb (uv_write_t *req, int status)
 

Variables

static struct test_ctx ctx
 
static struct echo_ctx ctx2
 
static int is_child_process
 
static int is_in_process
 
static int read_cb_count
 
static int recv_cb_count
 
static int write2_cb_called
 

Function Documentation

◆ alloc_cb()

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

Definition at line 76 of file test-ipc-send-recv.c.

◆ connect_cb()

static void connect_cb ( uv_connect_t req,
int  status 
)
static

Definition at line 138 of file test-ipc-send-recv.c.

◆ ipc_send_recv_helper()

int ipc_send_recv_helper ( void  )

Definition at line 407 of file test-ipc-send-recv.c.

◆ ipc_send_recv_helper_threadproc()

void ipc_send_recv_helper_threadproc ( void *  arg)

Definition at line 417 of file test-ipc-send-recv.c.

◆ listen_cb()

static void listen_cb ( uv_stream_t handle,
int  status 
)
static

Definition at line 360 of file test-ipc-send-recv.c.

◆ read_cb()

static void read_cb ( uv_stream_t handle,
ssize_t  nread,
const uv_buf_t rdbuf 
)
static

Definition at line 297 of file test-ipc-send-recv.c.

◆ recv_cb()

static void recv_cb ( uv_stream_t handle,
ssize_t  nread,
const uv_buf_t buf 
)
static

Definition at line 86 of file test-ipc-send-recv.c.

◆ run_ipc_send_recv_helper()

int run_ipc_send_recv_helper ( uv_loop_t loop,
int  inprocess 
)

Definition at line 371 of file test-ipc-send-recv.c.

◆ run_ipc_send_recv_pipe()

static int run_ipc_send_recv_pipe ( int  inprocess)
static

Definition at line 202 of file test-ipc-send-recv.c.

◆ run_ipc_send_recv_tcp()

static int run_ipc_send_recv_tcp ( int  inprocess)
static

Definition at line 240 of file test-ipc-send-recv.c.

◆ run_test()

static int run_test ( int  inprocess)
static

Definition at line 168 of file test-ipc-send-recv.c.

◆ send_recv_start()

static void send_recv_start ( void  )
static

Definition at line 350 of file test-ipc-send-recv.c.

◆ spawn_helper()

void spawn_helper ( uv_pipe_t channel,
uv_process_t process,
const char *  helper 
)

Definition at line 291 of file test-ipc.c.

◆ TEST_IMPL() [1/4]

TEST_IMPL ( ipc_send_recv_pipe  )

Definition at line 226 of file test-ipc-send-recv.c.

◆ TEST_IMPL() [2/4]

TEST_IMPL ( ipc_send_recv_pipe_inprocess  )

Definition at line 233 of file test-ipc-send-recv.c.

◆ TEST_IMPL() [3/4]

TEST_IMPL ( ipc_send_recv_tcp  )

Definition at line 267 of file test-ipc-send-recv.c.

◆ TEST_IMPL() [4/4]

TEST_IMPL ( ipc_send_recv_tcp_inprocess  )

Definition at line 274 of file test-ipc-send-recv.c.

◆ write2_cb()

static void write2_cb ( uv_write_t req,
int  status 
)
static

Definition at line 284 of file test-ipc-send-recv.c.

Variable Documentation

◆ ctx

struct test_ctx ctx
static

Definition at line 65 of file test-ipc-send-recv.c.

◆ ctx2

struct echo_ctx ctx2
static

Definition at line 66 of file test-ipc-send-recv.c.

◆ is_child_process

int is_child_process
static

Definition at line 69 of file test-ipc-send-recv.c.

◆ is_in_process

int is_in_process
static

Definition at line 70 of file test-ipc-send-recv.c.

◆ read_cb_count

int read_cb_count
static

Definition at line 71 of file test-ipc-send-recv.c.

◆ recv_cb_count

int recv_cb_count
static

Definition at line 72 of file test-ipc-send-recv.c.

◆ write2_cb_called

int write2_cb_called
static

Definition at line 73 of file test-ipc-send-recv.c.



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