/libuv/docs/code/udp-dhcp/ |
H A D | main.c | 21 free(buf->base); in on_read() 38 free(buf->base); in on_read() 48 buffer.base[0] = 0x1; in make_discover_msg() 50 buffer.base[1] = 0x1; in make_discover_msg() 52 buffer.base[2] = 0x6; in make_discover_msg() 54 buffer.base[3] = 0x0; in make_discover_msg() 59 buffer.base[8] = 0x0; in make_discover_msg() 84 buffer.base[241] = 1; in make_discover_msg() 89 buffer.base[244] = 4; in make_discover_msg() 90 buffer.base[245] = 1; in make_discover_msg() [all …]
|
/libuv/src/ |
H A D | inet.c | 83 best.base = -1; in inet_ntop6() 85 cur.base = -1; in inet_ntop6() 89 if (cur.base == -1) in inet_ntop6() 90 cur.base = i, cur.len = 1; in inet_ntop6() 94 if (cur.base != -1) { in inet_ntop6() 97 cur.base = -1; in inet_ntop6() 101 if (cur.base != -1) { in inet_ntop6() 106 best.base = -1; in inet_ntop6() 114 if (best.base != -1 && i >= best.base && in inet_ntop6() 116 if (i == best.base) in inet_ntop6() [all …]
|
/libuv/test/ |
H A D | test-shutdown-simultaneous.c | 39 buf->base = malloc(size); in alloc_cb() 56 free(buf->base); in read_cb() 63 ASSERT_MEM_EQ(buf->base, "QQSS", 4); in read_cb() 64 free(buf->base); in read_cb() 72 if (buf->base) { in read_cb() 73 free(buf->base); in read_cb() 113 qbuf.base = "QQSS"; in TEST_IMPL()
|
H A D | test-shutdown-eof.c | 43 buf->base = malloc(size); in alloc_cb() 52 free(buf->base); in read_cb() 59 ASSERT_EQ(buf->base[0], 'Q'); in read_cb() 60 free(buf->base); in read_cb() 65 if (buf->base) { in read_cb() 66 free(buf->base); in read_cb() 157 qbuf.base = "Q"; in TEST_IMPL()
|
H A D | echo-server.c | 54 free(wr->buf.base); in after_write() 92 free(buf->base); in after_read() 102 free(buf->base); in after_read() 113 if (buf->base[i] == 'Q') { in after_read() 114 if (i + 1 < nread && buf->base[i + 1] == 'S') { in after_read() 116 if (i + 2 < nread && buf->base[i + 2] == 'S') in after_read() 126 free(buf->base); in after_read() 137 wr->buf = uv_buf_init(buf->base, nread); in after_read() 156 buf->base = malloc(suggested_size); in echo_alloc() 165 buf->base = slab; in slab_alloc() [all …]
|
H A D | test-ipc.c | 155 free(buf->base); in on_read() 161 free(buf->base); in on_read() 209 free(buf->base); in on_read() 224 free(buf->base); in on_read_listen_after_bound_twice() 230 free(buf->base); in on_read_listen_after_bound_twice() 276 free(buf->base); in on_read_listen_after_bound_twice() 341 free(buf->base); in on_tcp_read() 361 free(buf->base); in on_read_connection() 405 free(buf->base); in on_read_connection() 413 free(buf->base); in on_read_send_zero() [all …]
|
H A D | test-udp-mmsg.c | 57 buf->base = malloc(buffer_size); in alloc_cb() 58 ASSERT_NOT_NULL(buf->base); in alloc_cb() 82 free(rcvbuf->base); in recv_cb() 92 ASSERT_MEM_EQ("PING", rcvbuf->base, nread); in recv_cb() 104 free(rcvbuf->base); in recv_cb()
|
H A D | test-tcp-try-write.c | 71 static char base[1024]; in alloc_cb() local 73 buf->base = base; in alloc_cb() 74 buf->len = sizeof(base); in alloc_cb()
|
H A D | test-ping-pong.c | 56 buf->base = malloc(size); in alloc_cb() 133 free(buf->base); in pinger_read_cb() 142 ASSERT_EQ(buf->base[i], pinger->pong[pinger->state]); in pinger_read_cb() 159 free(buf->base); in pinger_read_cb() 174 free(buf->base); in ponger_read_cb() 183 if (buf->base[i] == 'I') in ponger_read_cb() 184 buf->base[i] = 'O'; in ponger_read_cb() 187 writebuf = uv_buf_init(buf->base, nread); in ponger_read_cb() 190 req->data = buf->base; in ponger_read_cb()
|
H A D | test-tcp-write-in-a-row.c | 87 static char base[1024]; in alloc_cb() local 89 buf->base = base; in alloc_cb() 90 buf->len = sizeof(base); in alloc_cb()
|
H A D | test-callback-stack.c | 50 buf->base = malloc(size); in alloc_cb() 51 ASSERT_NOT_NULL(buf->base); in alloc_cb() 74 free(buf->base); in read_cb() 158 buf.base = (char*) &MESSAGE; in connect_cb()
|
H A D | test-tcp-rst.c | 40 buf->base = malloc(size); in alloc_cb() 56 free(buf->base); in read_cb() 86 qbuf.base = "QSH"; in TEST_IMPL()
|
H A D | test-pipe-sendmsg.c | 66 static char base[1]; in alloc_cb() local 68 buf->base = base; in alloc_cb() 69 buf->len = sizeof(base); in alloc_cb()
|
H A D | benchmark-ping-pongs.c | 65 ab->uv_buf_t.base = (char*) (ab + 1); in buf_alloc() 73 buf_t* ab = (buf_t*) buf->base - 1; in buf_free() 135 if (buf->base) { in pinger_read_cb() 147 ASSERT_EQ(buf->base[i], PING[pinger->state]); in pinger_read_cb()
|
H A D | test-tcp-write-queue-order.c | 65 static char base[1024]; in connect_cb() local 73 buf = uv_buf_init(base, sizeof(base)); in connect_cb()
|
H A D | test-udp-send-immediate.c | 46 buf->base = slab; in alloc_cb() 87 ASSERT(memcmp("PING", rcvbuf->base, nread) == 0 || in sv_recv_cb() 88 memcmp("PANG", rcvbuf->base, nread) == 0); in sv_recv_cb()
|
H A D | test-udp-ipv6.c | 70 buf->base = slab; in alloc_cb() 114 printf("got %d %.*s\n", (int) nread, nread > 0 ? (int) nread : 0, buf->base); in ipv6_recv_fail() 128 printf("got %d %.*s\n", (int) nread, nread > 0 ? (int) nread : 0, buf->base); in ipv6_recv_ok() 133 ASSERT(!memcmp(buf->base, data, 9)); in ipv6_recv_ok()
|
H A D | test-ipc-heavy-traffic-deadlock-bug.c | 84 buf->base = malloc(suggested_size); in alloc_cb() 101 ASSERT_EQ(buf->base[i], BUFFER_CONTENT); in read_cb() 102 free(buf->base); in read_cb()
|
H A D | test-delayed-accept.c | 34 buf->base = malloc(size); in alloc_cb() 121 if (buf->base) { in read_cb() 122 free(buf->base); in read_cb()
|
/libuv/docs/code/tty/ |
H A D | main.c | 20 buf1.base = "\033[41;37m"; in main() 21 buf1.len = strlen(buf1.base); in main() 25 buf.base = "Hello TTY\n"; in main() 26 buf.len = strlen(buf.base); in main()
|
/libuv/docs/code/uvtee/ |
H A D | main.c | 24 free(wr->buf.base); in free_write_req() 39 memcpy(req->buf.base, buf.base, size); in write_data() 57 if (buf->base) in read_stdin() 58 free(buf->base); in read_stdin()
|
/libuv/docs/code/multi-echo-server/ |
H A D | worker.c | 18 free(wr->buf.base); in free_write_req() 23 buf->base = malloc(suggested_size); in alloc_buffer() 37 req->buf = uv_buf_init(buf->base, nread); in echo_read() 48 free(buf->base); in echo_read()
|
/libuv/docs/code/pipe-echo-server/ |
H A D | main.c | 21 free(wr->buf.base); in free_write_req() 26 buf->base = malloc(suggested_size); in alloc_buffer() 40 req->buf = uv_buf_init(buf->base, nread); in echo_read() 51 free(buf->base); in echo_read()
|
/libuv/docs/code/tcp-echo-server/ |
H A D | main.c | 19 free(wr->buf.base); in free_write_req() 24 buf->base = (char*) malloc(suggested_size); in alloc_buffer() 42 req->buf = uv_buf_init(buf->base, nread); in echo_read() 52 free(buf->base); in echo_read()
|
/libuv/docs/code/dns/ |
H A D | main.c | 9 buf->base = malloc(suggested_size); in alloc_buffer() 18 free(buf->base); in on_read() 25 strncpy(data, buf->base, nread); in on_read() 29 free(buf->base); in on_read()
|