/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
H A D | setsockopt04.c | 29 unsigned int sndbuf, rec_sndbuf; in run() local 32 sndbuf = SNDBUF; in run() 34 optlen = sizeof(sndbuf); in run() 36 SAFE_SETSOCKOPT(sockfd, SOL_SOCKET, SO_SNDBUFFORCE, &sndbuf, optlen); in run() 39 tst_res(TINFO, "Try to set send buffer size to: %u", sndbuf); in run()
|
/third_party/libuv/test/ |
H A D | test-udp-alloc-cb-fail.c | 115 uv_buf_t sndbuf; in sv_recv_cb() local 141 sndbuf = uv_buf_init("PONG", 4); in sv_recv_cb() 142 r = uv_udp_send(req, handle, &sndbuf, 1, addr, sv_send_cb); in sv_recv_cb()
|
H A D | test-udp-send-and-recv.c | 122 uv_buf_t sndbuf; in sv_recv_cb() local 152 sndbuf = uv_buf_init("PONG", 4); in sv_recv_cb() 153 r = uv_udp_send(req, handle, &sndbuf, 1, addr, sv_send_cb); in sv_recv_cb()
|
H A D | echo-server.c | 234 uv_buf_t sndbuf; in on_recv() local 247 sndbuf = uv_buf_init(rcvbuf->base, nread); in on_recv() 248 ASSERT_LE(0, uv_udp_send(req, handle, &sndbuf, 1, addr, on_send)); in on_recv()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | ctrl_iface_unix.c | 81 int sndbuf, outq; in wpas_ctrl_sock_debug() local 87 optlen = sizeof(sndbuf); in wpas_ctrl_sock_debug() 88 sndbuf = 0; in wpas_ctrl_sock_debug() 89 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, &optlen) < 0) in wpas_ctrl_sock_debug() 90 sndbuf = -1; in wpas_ctrl_sock_debug() 96 "CTRL-DEBUG: %s: sock=%d sndbuf=%d outq=%d send_len=%d", in wpas_ctrl_sock_debug() 97 title, sock, sndbuf, outq, (int) len); in wpas_ctrl_sock_debug() 286 int sndbuf, outq; in wpas_ctrl_iface_throttle() local 288 optlen = sizeof(sndbuf); in wpas_ctrl_iface_throttle() 289 sndbuf in wpas_ctrl_iface_throttle() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | ctrl_iface_unix.c | 81 int sndbuf, outq; in wpas_ctrl_sock_debug() local 87 optlen = sizeof(sndbuf); in wpas_ctrl_sock_debug() 88 sndbuf = 0; in wpas_ctrl_sock_debug() 89 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, &optlen) < 0) in wpas_ctrl_sock_debug() 90 sndbuf = -1; in wpas_ctrl_sock_debug() 96 "CTRL-DEBUG: %s: sock=%d sndbuf=%d outq=%d send_len=%d", in wpas_ctrl_sock_debug() 97 title, sock, sndbuf, outq, (int) len); in wpas_ctrl_sock_debug() 296 int sndbuf, outq; in wpas_ctrl_iface_throttle() local 298 optlen = sizeof(sndbuf); in wpas_ctrl_iface_throttle() 299 sndbuf in wpas_ctrl_iface_throttle() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | libsrt.c | 84 int sndbuf; member 134 { "sndbuf", "Send buffer size (in bytes)", OFFSET(sndbuf), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags = D|E }, 354 (s->sndbuf >= 0 && libsrt_setsockopt(h, fd, SRTO_SNDBUF, "SRTO_SNDBUF", &s->sndbuf, sizeof(s->sndbuf)) < 0) || in libsrt_set_options_pre() 621 if (av_find_info_tag(buf, sizeof(buf), "sndbuf", p)) { in libsrt_open() 622 s->sndbuf = strtol(buf, NULL, 10); in libsrt_open()
|
/third_party/lwip/src/include/lwip/priv/ |
H A D | altcp_priv.h | 109 altcp_sndbuf_fn sndbuf; member
|
/third_party/lwip/src/core/ |
H A D | altcp.c | 421 if (conn && conn->fns && conn->fns->sndbuf) { in altcp_sndbuf() 422 return conn->fns->sndbuf(conn); in altcp_sndbuf()
|
/third_party/lwip/src/apps/altcp_tls/ |
H A D | altcp_tls_mbedtls.c | 1077 * or remaining sndbuf space of inner_conn. 1089 u16_t sndbuf = altcp_sndbuf(conn->inner_conn); in altcp_mbedtls_sndbuf() local 1094 /* internal sndbuf smaller than our offset */ in altcp_mbedtls_sndbuf() 1095 if (ssl_added < sndbuf) { in altcp_mbedtls_sndbuf() 1103 /* Adjust sndbuf of inner_conn with what added by SSL */ in altcp_mbedtls_sndbuf() 1104 ret = LWIP_MIN(sndbuf - ssl_added, max_len); in altcp_mbedtls_sndbuf() 1105 LWIP_ASSERT("sndbuf overflow", ret <= 0xFFFF); in altcp_mbedtls_sndbuf()
|