Home
last modified time | relevance | path

Searched refs:pinger (Results 1 – 3 of 3) sorted by relevance

/libuv/test/
H A Dtest-ping-pong.c142 ASSERT_EQ(buf->base[i], pinger->pong[pinger->state]); in pinger_read_cb()
143 pinger->state = (pinger->state + 1) % strlen(pinger->pong); in pinger_read_cb()
222 pinger = malloc(sizeof(*pinger)); in tcp_pinger_v6_new()
231 pinger->stream.tcp.data = pinger; in tcp_pinger_v6_new()
253 pinger = malloc(sizeof(*pinger)); in tcp_pinger_new()
262 pinger->stream.tcp.data = pinger; in tcp_pinger_new()
282 pinger = malloc(sizeof(*pinger)); in pipe_pinger_new()
291 pinger->stream.pipe.data = pinger; in pipe_pinger_new()
309 pinger = malloc(sizeof(*pinger)); in socketpair_pinger_new()
326 pinger->stream.pipe.data = pinger; in socketpair_pinger_new()
[all …]
H A Dbenchmark-ping-udp.c64 pinger_t* pinger; in pinger_close_cb() local
74 free(pinger); in pinger_close_cb()
94 pinger_t* pinger; in pinger_read_cb() local
103 pinger->state = (pinger->state + 1) % (sizeof(PING) - 1); in pinger_read_cb()
105 pinger->pongs++; in pinger_read_cb()
119 pinger_t* pinger = malloc(sizeof(*pinger)); in udp_pinger_new() local
123 pinger->state = 0; in udp_pinger_new()
124 pinger->pongs = 0; in udp_pinger_new()
129 r = uv_udp_bind(&pinger->udp, (const struct sockaddr*) &pinger->server_addr, 0); in udp_pinger_new()
132 pinger->udp.data = pinger; in udp_pinger_new()
[all …]
H A Dbenchmark-ping-pongs.c80 pinger_t* pinger; in pinger_close_cb() local
86 free(pinger); in pinger_close_cb()
128 pinger_t* pinger; in pinger_read_cb() local
148 pinger->state = (pinger->state + 1) % (sizeof(PING) - 1); in pinger_read_cb()
150 pinger->pongs++; in pinger_read_cb()
171 pinger_write_ping(pinger); in pinger_connect_cb()
182 pinger_t *pinger; in pinger_new() local
187 pinger = malloc(sizeof(*pinger)); in pinger_new()
188 pinger->state = 0; in pinger_new()
189 pinger->pongs = 0; in pinger_new()
[all …]

Completed in 9 milliseconds