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

Go to the source code of this file.

Macros

#define CONCURRENT_COUNT   10
 

Functions

static void getaddrinfo_basic_cb (uv_getaddrinfo_t *handle, int status, struct addrinfo *res)
 
static void getaddrinfo_cuncurrent_cb (uv_getaddrinfo_t *handle, int status, struct addrinfo *res)
 
static void getaddrinfo_fail_cb (uv_getaddrinfo_t *req, int status, struct addrinfo *res)
 
 TEST_IMPL (getaddrinfo_basic)
 
 TEST_IMPL (getaddrinfo_basic_sync)
 
 TEST_IMPL (getaddrinfo_concurrent)
 
 TEST_IMPL (getaddrinfo_fail)
 
 TEST_IMPL (getaddrinfo_fail_sync)
 

Variables

static int callback_counts [CONCURRENT_COUNT]
 
static int fail_cb_called
 
static int getaddrinfo_cbs = 0
 
static uv_getaddrinfo_tgetaddrinfo_handle
 
static uv_getaddrinfo_t getaddrinfo_handles [CONCURRENT_COUNT]
 
static const char * name = "localhost"
 

Macro Definition Documentation

◆ CONCURRENT_COUNT

#define CONCURRENT_COUNT   10

Definition at line 26 of file test-getaddrinfo.c.

Function Documentation

◆ getaddrinfo_basic_cb()

static void getaddrinfo_basic_cb ( uv_getaddrinfo_t handle,
int  status,
struct addrinfo res 
)
static

Definition at line 50 of file test-getaddrinfo.c.

◆ getaddrinfo_cuncurrent_cb()

static void getaddrinfo_cuncurrent_cb ( uv_getaddrinfo_t handle,
int  status,
struct addrinfo res 
)
static

Definition at line 60 of file test-getaddrinfo.c.

◆ getaddrinfo_fail_cb()

static void getaddrinfo_fail_cb ( uv_getaddrinfo_t req,
int  status,
struct addrinfo res 
)
static

Definition at line 39 of file test-getaddrinfo.c.

◆ TEST_IMPL() [1/5]

TEST_IMPL ( getaddrinfo_basic  )

Definition at line 125 of file test-getaddrinfo.c.

◆ TEST_IMPL() [2/5]

TEST_IMPL ( getaddrinfo_basic_sync  )

Definition at line 146 of file test-getaddrinfo.c.

◆ TEST_IMPL() [3/5]

TEST_IMPL ( getaddrinfo_concurrent  )

Definition at line 162 of file test-getaddrinfo.c.

◆ TEST_IMPL() [4/5]

TEST_IMPL ( getaddrinfo_fail  )

Definition at line 83 of file test-getaddrinfo.c.

◆ TEST_IMPL() [5/5]

TEST_IMPL ( getaddrinfo_fail_sync  )

Definition at line 108 of file test-getaddrinfo.c.

Variable Documentation

◆ callback_counts

int callback_counts[CONCURRENT_COUNT]
static

Definition at line 35 of file test-getaddrinfo.c.

◆ fail_cb_called

int fail_cb_called
static

Definition at line 36 of file test-getaddrinfo.c.

◆ getaddrinfo_cbs

int getaddrinfo_cbs = 0
static

Definition at line 30 of file test-getaddrinfo.c.

◆ getaddrinfo_handle

uv_getaddrinfo_t* getaddrinfo_handle
static

Definition at line 33 of file test-getaddrinfo.c.

◆ getaddrinfo_handles

uv_getaddrinfo_t getaddrinfo_handles[CONCURRENT_COUNT]
static

Definition at line 34 of file test-getaddrinfo.c.

◆ name

const char* name = "localhost"
static

Definition at line 28 of file test-getaddrinfo.c.



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