Home
last modified time | relevance | path

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

/third_party/libcoap/examples/contiki/
Dcoap-observer.c56 coap_address_t listen_addr; in init_coap() local
58 coap_address_init(&listen_addr); in init_coap()
59 listen_addr.port = UIP_HTONS(COAP_DEFAULT_PORT); in init_coap()
63 uip_ip6addr(&listen_addr.addr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0); in init_coap()
64 uip_ds6_set_addr_iid(&listen_addr.addr, &uip_lladdr); in init_coap()
65 uip_ds6_addr_add(&listen_addr.addr, 0, ADDR_AUTOCONF); in init_coap()
69 uip_debug_ipaddr_print(&listen_addr.addr); in init_coap()
75 listen_addr.addr.u8[0], listen_addr.addr.u8[1], in init_coap()
76 listen_addr.addr.u8[2], listen_addr.addr.u8[3], in init_coap()
77 listen_addr.addr.u8[4], listen_addr.addr.u8[5], in init_coap()
[all …]
Dserver.c55 coap_address_t listen_addr; in init_coap_server() local
62 coap_address_init(&listen_addr); in init_coap_server()
63 listen_addr.port = UIP_HTONS(COAP_DEFAULT_PORT); in init_coap_server()
65 uip_ip6addr(&listen_addr.addr, 0xaaaa, 0, 0, 0, 0, 0, 0, NODE_ADDR); in init_coap_server()
67 uip_ds6_prefix_add(&listen_addr.addr, 64, 0, 0, 0, 0); in init_coap_server()
70 uip_ds6_addr_add(&listen_addr.addr, 0, ADDR_MANUAL); in init_coap_server()
78 PRINT6ADDR(&listen_addr.addr); in init_coap_server()
81 *ctx = coap_new_context(&listen_addr); in init_coap_server()
/third_party/libcoap/src/
Dcoap_tcp.c195 const coap_address_t *listen_addr, argument
205 sock->fd = socket(listen_addr->addr.sa.sa_family, SOCK_STREAM, 0);
235 switch (listen_addr->addr.sa.sa_family) {
251 if (bind(sock->fd, &listen_addr->addr.sa,
252 listen_addr->addr.sa.sa_family == AF_INET ?
254 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) {
Dcoap_io_lwip.c176 const coap_address_t *listen_addr, in coap_socket_bind_udp() argument
210 const coap_address_t *listen_addr, in coap_socket_bind_tcp() argument
Dcoap_io.c104 const coap_address_t *listen_addr, in coap_socket_bind_udp() argument
114 uip_ipaddr_copy(&bound_addr->addr, &listen_addr->addr); in coap_socket_bind_udp()
115 bound_addr->port = listen_addr->port; in coap_socket_bind_udp()
160 const coap_address_t *listen_addr, argument
169 sock->fd = socket(listen_addr->addr.sa.sa_family, SOCK_DGRAM, 0);
193 switch (listen_addr->addr.sa.sa_family) {
222 if (bind(sock->fd, &listen_addr->addr.sa,
223 listen_addr->addr.sa.sa_family == AF_INET ?
225 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) {
Dcoap_session.c1300 coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr, coap_proto_t proto) { in coap_new_endpoint() argument
1304 assert(listen_addr); in coap_new_endpoint()
1342 if (!coap_socket_bind_udp(&ep->sock, listen_addr, &ep->bind_addr)) in coap_new_endpoint()
1347 if (!coap_socket_bind_tcp(&ep->sock, listen_addr, &ep->bind_addr)) in coap_new_endpoint()
Dnet.c506 const coap_address_t *listen_addr) { in coap_new_context() argument
585 if (listen_addr) { in coap_new_context()
586 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/man/
Dcoap_endpoint_server.txt.in179 coap_address_t listen_addr;
189 coap_address_init(&listen_addr);
190 listen_addr.addr.sa.sa_family = AF_INET;
191 listen_addr.addr.sin.sin_port = htons (5683);
193 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_UDP);
285 coap_address_t listen_addr;
333 coap_address_init(&listen_addr);
334 listen_addr.addr.sa.sa_family = AF_INET;
335 listen_addr.addr.sin.sin_port = htons (5684);
337 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_DTLS);
[all …]
Dcoap_encryption.txt.in942 coap_address_t listen_addr;
991 coap_address_init(&listen_addr);
992 listen_addr.addr.sa.sa_family = AF_INET;
993 listen_addr.addr.sin.sin_port = htons (5684);
996 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_DTLS);
1090 coap_address_t listen_addr;
1124 coap_address_init(&listen_addr);
1125 listen_addr.addr.sa.sa_family = AF_INET;
1126 listen_addr.addr.sin.sin_port = htons (5684);
1128 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_DTLS);
/third_party/ltp/testcases/kernel/syscalls/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()
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()
/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.c149 const char *listen_addr; /* address for accepting client connections */ member
191 opt.listen_addr = DFL_LISTEN_ADDR; in get_options()
213 opt.listen_addr = q; in get_options()
860 opt.listen_addr, opt.listen_port ); in main()
863 if( ( ret = mbedtls_net_bind( &listen_fd, opt.listen_addr, opt.listen_port, in main()
/third_party/libcoap/include/coap3/
Dcoap_tcp_internal.h85 const coap_address_t *listen_addr,
Dcoap_io_internal.h73 const coap_address_t *listen_addr,
Dcoap_session.h361 coap_endpoint_t *coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr, coap…
Dnet.h152 coap_context_t *coap_new_context(const coap_address_t *listen_addr);