Go to the documentation of this file.
77 size_t suggested_size,
109 if (nread == UV_EOF) {
205 ctx.expected_type = UV_NAMED_PIPE;
227 #if defined(NO_SEND_HANDLE_ON_PIPE)
234 #if defined(NO_SEND_HANDLE_ON_PIPE)
241 struct sockaddr_in
addr;
246 ctx.expected_type = UV_TCP;
268 #if defined(NO_SEND_HANDLE_ON_PIPE)
275 #if defined(NO_SEND_HANDLE_ON_PIPE)
307 if (nread == UV_EOF || nread == UV_ECONNABORTED) {
UV_EXTERN int uv_pipe_pending_count(uv_pipe_t *handle)
UV_EXTERN void uv_pipe_connect(uv_connect_t *req, uv_pipe_t *handle, const char *name, uv_connect_cb cb)
return memset(p, 0, total)
UV_EXTERN int uv_pipe_init(uv_loop_t *, uv_pipe_t *handle, int ipc)
UV_EXTERN int uv_listen(uv_stream_t *stream, int backlog, uv_connection_cb cb)
UV_EXTERN int uv_thread_join(uv_thread_t *tid)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
static void read_cb(uv_stream_t *handle, ssize_t nread, const uv_buf_t *rdbuf)
UV_EXTERN int uv_is_closing(const uv_handle_t *handle)
void ipc_send_recv_helper_threadproc(void *arg)
int ipc_send_recv_helper(void)
static int run_test(int inprocess)
UV_EXTERN int uv_tcp_bind(uv_tcp_t *handle, const struct sockaddr *addr, unsigned int flags)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
static void write2_cb(uv_write_t *req, int status)
UV_EXTERN int uv_ip4_addr(const char *ip, int port, struct sockaddr_in *addr)
UV_EXTERN int uv_loop_close(uv_loop_t *loop)
UV_EXTERN uv_loop_t * uv_default_loop(void)
wrapped_grpc_channel * channel
static uv_process_t process
static int run_ipc_send_recv_tcp(int inprocess)
UV_EXTERN int uv_is_readable(const uv_stream_t *handle)
UV_EXTERN int uv_read_start(uv_stream_t *, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
static void connect_cb(uv_connect_t *req, int status)
static void listen_cb(uv_stream_t *handle, int status)
UV_EXTERN int uv_tcp_init(uv_loop_t *, uv_tcp_t *handle)
UV_EXTERN int uv_accept(uv_stream_t *server, uv_stream_t *client)
UV_EXTERN int uv_loop_init(uv_loop_t *loop)
UV_EXTERN int uv_thread_create(uv_thread_t *tid, uv_thread_cb entry, void *arg)
UV_EXTERN void uv_sleep(unsigned int msec)
static int run_ipc_send_recv_pipe(int inprocess)
static struct echo_ctx ctx2
void notify_parent_process(void)
static void send_recv_start(void)
#define MAKE_VALGRIND_HAPPY()
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)
UV_EXTERN uv_handle_type uv_pipe_pending_type(uv_pipe_t *handle)
static int write2_cb_called
UV_EXTERN uv_buf_t uv_buf_init(char *base, unsigned int len)
uv_handle_type expected_type
#define RETURN_SKIP(explanation)
static void alloc_cb(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
void spawn_helper(uv_pipe_t *channel, uv_process_t *process, const char *helper)
TEST_IMPL(ipc_send_recv_pipe)
UV_EXTERN int uv_write2(uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t *send_handle, uv_write_cb cb)
uv_handle_type expected_type
UV_EXTERN int uv_is_writable(const uv_stream_t *handle)
UV_EXTERN int uv_pipe_bind(uv_pipe_t *handle, const char *name)
UV_EXTERN int uv_pipe_open(uv_pipe_t *, uv_file file)
static int is_child_process
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:30