Macros | Functions | Variables
test-udp-try-send.c File Reference
#include "uv.h"
#include "task.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for test-udp-try-send.c:

Go to the source code of this file.

Macros

#define CHECK_HANDLE(handle)   ASSERT((uv_udp_t*)(handle) == &server || (uv_udp_t*)(handle) == &client)
 

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 sv_recv_cb (uv_udp_t *handle, ssize_t nread, const uv_buf_t *rcvbuf, const struct sockaddr *addr, unsigned flags)
 
 TEST_IMPL (udp_try_send)
 

Variables

static uv_udp_t client
 
static int close_cb_called
 
static uv_udp_t server
 
static int sv_recv_cb_called
 

Macro Definition Documentation

◆ CHECK_HANDLE

#define CHECK_HANDLE (   handle)    ASSERT((uv_udp_t*)(handle) == &server || (uv_udp_t*)(handle) == &client)

Definition at line 29 of file test-udp-try-send.c.

Function Documentation

◆ alloc_cb()

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

Definition at line 40 of file test-udp-try-send.c.

◆ close_cb()

static void close_cb ( uv_handle_t handle)
static

Definition at line 51 of file test-udp-try-send.c.

◆ sv_recv_cb()

static void sv_recv_cb ( uv_udp_t handle,
ssize_t  nread,
const uv_buf_t rcvbuf,
const struct sockaddr *  addr,
unsigned  flags 
)
static

Definition at line 58 of file test-udp-try-send.c.

◆ TEST_IMPL()

TEST_IMPL ( udp_try_send  )

Definition at line 81 of file test-udp-try-send.c.

Variable Documentation

◆ client

uv_udp_t client
static

Definition at line 33 of file test-udp-try-send.c.

◆ close_cb_called

int close_cb_called
static

Definition at line 37 of file test-udp-try-send.c.

◆ server

uv_udp_t server
static

Definition at line 32 of file test-udp-try-send.c.

◆ sv_recv_cb_called

int sv_recv_cb_called
static

Definition at line 35 of file test-udp-try-send.c.



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