#include "uv.h"
#include "task.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
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 | do_test (uv_udp_recv_cb recv_cb, int bind_flags) |
|
static void | ipv6_recv_fail (uv_udp_t *handle, ssize_t nread, const uv_buf_t *buf, const struct sockaddr *addr, unsigned flags) |
|
static void | ipv6_recv_ok (uv_udp_t *handle, ssize_t nread, const uv_buf_t *buf, const struct sockaddr *addr, unsigned flags) |
|
static int | is_from_client (const struct sockaddr *addr) |
|
static void | send_cb (uv_udp_send_t *req, int status) |
|
| TEST_IMPL (udp_dual_stack) |
|
| TEST_IMPL (udp_ipv6_only) |
|
static void | timeout_cb (uv_timer_t *timer) |
|
◆ CHECK_HANDLE
#define CHECK_HANDLE |
( |
|
handle | ) |
|
◆ CHECK_REQ
◆ alloc_cb()
◆ close_cb()
◆ do_test()
◆ ipv6_recv_fail()
◆ ipv6_recv_ok()
◆ is_from_client()
static int is_from_client |
( |
const struct sockaddr * |
addr | ) |
|
|
static |
◆ send_cb()
◆ TEST_IMPL() [1/2]
TEST_IMPL |
( |
udp_dual_stack |
| ) |
|
◆ TEST_IMPL() [2/2]
TEST_IMPL |
( |
udp_ipv6_only |
| ) |
|
◆ timeout_cb()
◆ client
◆ client_port
◆ close_cb_called
◆ data
◆ recv_cb_called
◆ req_
◆ send_cb_called
◆ server
◆ timeout