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

Go to the source code of this file.

Macros

#define CHECK_HANDLE(handle)   ASSERT((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 recv_cb (uv_udp_t *handle, ssize_t nread, const uv_buf_t *rcvbuf, const struct sockaddr *addr, unsigned flags)
 
static void send_cb (uv_udp_send_t *req, int status)
 
 TEST_IMPL (udp_send_unreachable)
 
static void timer_cb (uv_timer_t *h)
 

Variables

static int alloc_cb_called
 
static uv_udp_t client
 
static int close_cb_called
 
static int recv_cb_called
 
static int send_cb_called
 
static uv_timer_t timer
 
static int timer_cb_called
 

Macro Definition Documentation

◆ CHECK_HANDLE

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

Definition at line 29 of file test-udp-send-unreachable.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 42 of file test-udp-send-unreachable.c.

◆ close_cb()

static void close_cb ( uv_handle_t handle)
static

Definition at line 54 of file test-udp-send-unreachable.c.

◆ recv_cb()

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

Definition at line 68 of file test-udp-send-unreachable.c.

◆ send_cb()

static void send_cb ( uv_udp_send_t req,
int  status 
)
static

Definition at line 60 of file test-udp-send-unreachable.c.

◆ TEST_IMPL()

TEST_IMPL ( udp_send_unreachable  )

Definition at line 95 of file test-udp-send-unreachable.c.

◆ timer_cb()

static void timer_cb ( uv_timer_t h)
static

Definition at line 87 of file test-udp-send-unreachable.c.

Variable Documentation

◆ alloc_cb_called

int alloc_cb_called
static

Definition at line 38 of file test-udp-send-unreachable.c.

◆ client

uv_udp_t client
static

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

◆ close_cb_called

int close_cb_called
static

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

◆ recv_cb_called

int recv_cb_called
static

Definition at line 36 of file test-udp-send-unreachable.c.

◆ send_cb_called

int send_cb_called
static

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

◆ timer

uv_timer_t timer
static

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

◆ timer_cb_called

int timer_cb_called
static

Definition at line 39 of file test-udp-send-unreachable.c.



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