Functions | Variables
test-udp-open.c File Reference
#include "uv.h"
#include "task.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
Include dependency graph for test-udp-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 uv_os_sock_t create_udp_socket (void)
 
static void recv_cb (uv_udp_t *handle, ssize_t nread, const uv_buf_t *buf, const struct sockaddr *addr, unsigned flags)
 
static void send_cb (uv_udp_send_t *req, int status)
 
static void startup (void)
 
 TEST_IMPL (udp_open)
 
 TEST_IMPL (udp_open_bound)
 
 TEST_IMPL (udp_open_connect)
 
 TEST_IMPL (udp_open_twice)
 
 TEST_IMPL (udp_send_unix)
 

Variables

static int close_cb_called = 0
 
static int send_cb_called = 0
 
static uv_udp_send_t send_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 83 of file test-udp-open.c.

◆ close_cb()

static void close_cb ( uv_handle_t handle)
static

Definition at line 93 of file test-udp-open.c.

◆ close_socket()

static void close_socket ( uv_os_sock_t  sock)
static

Definition at line 72 of file test-udp-open.c.

◆ create_udp_socket()

static uv_os_sock_t create_udp_socket ( void  )
static

Definition at line 49 of file test-udp-open.c.

◆ recv_cb()

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

Definition at line 99 of file test-udp-open.c.

◆ send_cb()

static void send_cb ( uv_udp_send_t req,
int  status 
)
static

Definition at line 129 of file test-udp-open.c.

◆ startup()

static void startup ( void  )
static

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

◆ TEST_IMPL() [1/5]

TEST_IMPL ( udp_open  )

Definition at line 138 of file test-udp-open.c.

◆ TEST_IMPL() [2/5]

TEST_IMPL ( udp_open_bound  )

Definition at line 222 of file test-udp-open.c.

◆ TEST_IMPL() [3/5]

TEST_IMPL ( udp_open_connect  )

Definition at line 252 of file test-udp-open.c.

◆ TEST_IMPL() [4/5]

TEST_IMPL ( udp_open_twice  )

Definition at line 196 of file test-udp-open.c.

◆ TEST_IMPL() [5/5]

TEST_IMPL ( udp_send_unix  )

Definition at line 303 of file test-udp-open.c.

Variable Documentation

◆ close_cb_called

int close_cb_called = 0
static

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

◆ send_cb_called

int send_cb_called = 0
static

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

◆ send_req

uv_udp_send_t send_req
static

Definition at line 37 of file test-udp-open.c.



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