Home
last modified time | relevance | path

Searched refs:listen_addr (Results 1 – 21 of 21) sorted by relevance

/third_party/libcoap/man/
Dcoap_endpoint_server.txt.in223 coap_address_t listen_addr;
234 coap_address_init(&listen_addr);
235 listen_addr.addr.sa.sa_family = AF_INET;
236 listen_addr.addr.sin.sin_port = htons (5683);
238 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_UDP);
265 coap_address_t listen_addr;
276 coap_address_set_unix_domain(&listen_addr,
280 unlink(listen_addr.addr.cun.sun_path);
282 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_UDP);
374 coap_address_t listen_addr;
[all …]
Dcoap_encryption.txt.in944 coap_address_t listen_addr;
993 coap_address_init(&listen_addr);
994 listen_addr.addr.sa.sa_family = AF_INET;
995 listen_addr.addr.sin.sin_port = htons (5684);
998 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_DTLS);
1092 coap_address_t listen_addr;
1126 coap_address_init(&listen_addr);
1127 listen_addr.addr.sa.sa_family = AF_INET;
1128 listen_addr.addr.sin.sin_port = htons (5684);
1130 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_DTLS);
/third_party/libcoap/src/
Dcoap_tcp.c205 const coap_address_t *listen_addr, argument
215 sock->fd = socket(listen_addr->addr.sa.sa_family, SOCK_STREAM, 0);
243 switch (listen_addr->addr.sa.sa_family) {
267 if (bind(sock->fd, &listen_addr->addr.sa,
269 listen_addr->addr.sa.sa_family == AF_INET ?
272 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) {
Dcoap_netif.c41 const coap_address_t *listen_addr) { in coap_netif_dgrm_listen() argument
42 if (!coap_socket_bind_udp(&endpoint->sock, listen_addr, in coap_netif_dgrm_listen()
159 const coap_address_t *listen_addr) { in coap_netif_strm_listen() argument
160 if (!coap_socket_bind_tcp(&endpoint->sock, listen_addr, in coap_netif_strm_listen()
Dcoap_io_lwip.c350 const coap_address_t *listen_addr, in coap_socket_bind_udp() argument
353 coap_address_t l_listen = *listen_addr; in coap_socket_bind_udp()
462 const coap_address_t *listen_addr, in coap_socket_bind_tcp() argument
465 (void)listen_addr; in coap_socket_bind_tcp()
Dcoap_io_contiki.c84 const coap_address_t *listen_addr, in coap_socket_bind_udp() argument
100 udp_bind(sock->udp_conn, listen_addr->port); in coap_socket_bind_udp()
Dcoap_io.c147 const coap_address_t *listen_addr, argument
161 sock->fd = socket(listen_addr->addr.sa.sa_family, SOCK_DGRAM, 0);
180 switch (listen_addr->addr.sa.sa_family) {
222 if (bind(sock->fd, &listen_addr->addr.sa,
224 listen_addr->addr.sa.sa_family == AF_INET ?
227 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) {
243 listen_addr->addr.sin6.sin6_scope_id;
Dcoap_session.c1844 coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr, coap_proto_t proto) { in coap_new_endpoint() argument
1848 assert(listen_addr); in coap_new_endpoint()
1899 if (!coap_netif_dgrm_listen(ep, listen_addr)) in coap_new_endpoint()
1906 if (!coap_netif_strm_listen(ep, listen_addr)) in coap_new_endpoint()
Dcoap_net.c471 coap_new_context(const coap_address_t *listen_addr) { in coap_new_context() argument
475 (void)listen_addr; in coap_new_context()
541 if (listen_addr) { in coap_new_context()
542 coap_endpoint_t *endpoint = coap_new_endpoint(c, listen_addr, COAP_PROTO_UDP); in coap_new_context()
/third_party/skia/third_party/externals/microhttpd/src/platform/
Dw32functions.c567 struct sockaddr_in listen_addr; in MHD_W32_pair_of_sockets_() local
577 listen_addr.sin_family = AF_INET; in MHD_W32_pair_of_sockets_()
578 listen_addr.sin_port = htons(0); in MHD_W32_pair_of_sockets_()
579 listen_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in MHD_W32_pair_of_sockets_()
580 if (0 == bind(listen_s, (struct sockaddr*) &listen_addr, c_addinlen) in MHD_W32_pair_of_sockets_()
582 && 0 == getsockname(listen_s, (struct sockaddr*) &listen_addr, in MHD_W32_pair_of_sockets_()
589 && (0 == connect(client_s, (struct sockaddr*) &listen_addr, c_addinlen) in MHD_W32_pair_of_sockets_()
/third_party/libcoap/examples/contiki/
Dserver.c49 coap_address_t listen_addr; in init_coap_server() local
54 uip_ipaddr_copy(&listen_addr.addr, &my_address->ipaddr); in init_coap_server()
55 coap_address_set_port(&listen_addr, COAP_DEFAULT_PORT); in init_coap_server()
57 *ctx = coap_new_context(&listen_addr); in init_coap_server()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind04.c108 struct sockaddr_storage listen_addr, remote_addr; in test_bind() local
133 tc_copy.addrlen = tst_get_connect_address(listen_sock, &listen_addr); in test_bind()
134 tc_copy.address = (struct sockaddr *)&listen_addr; in test_bind()
Dbind05.c122 struct sockaddr_storage listen_addr, remote_addr; in test_bind() local
146 tc_copy.addrlen = tst_get_connect_address(sock, &listen_addr); in test_bind()
147 tc_copy.address = (struct sockaddr *)&listen_addr; in test_bind()
/third_party/libcoap/include/coap3/
Dcoap_netif_internal.h57 const coap_address_t *listen_addr);
124 const coap_address_t *listen_addr);
Dcoap_tcp_internal.h83 const coap_address_t *listen_addr,
Dcoap_io_internal.h96 const coap_address_t *listen_addr,
Dcoap_session.h397 coap_endpoint_t *coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr,
Dcoap_net.h155 coap_context_t *coap_new_context(const coap_address_t *listen_addr);
/third_party/libuv/test/
Dbenchmark-multi-accept.c104 static struct sockaddr_in listen_addr; variable
216 (const struct sockaddr*) &listen_addr, in send_listen_handles()
357 (const struct sockaddr*) &listen_addr, in cl_close_cb()
370 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &listen_addr)); in test_tcp()
398 (const struct sockaddr*) &listen_addr, in test_tcp()
Dbenchmark-pump.c52 static struct sockaddr_in listen_addr; variable
382 ASSERT(0 == uv_ip4_addr("0.0.0.0", TEST_PORT, &listen_addr)); in HELPER_IMPL()
388 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &listen_addr, 0); in HELPER_IMPL()
/third_party/mbedtls/programs/test/
Dudp_proxy.c153 const char *listen_addr; /* address for accepting client connections */ member
196 opt.listen_addr = DFL_LISTEN_ADDR; in get_options()
218 opt.listen_addr = q; in get_options()
833 opt.listen_addr, opt.listen_port); in main()
836 if ((ret = mbedtls_net_bind(&listen_fd, opt.listen_addr, opt.listen_port, in main()