Home
last modified time | relevance | path

Searched refs:sockfd (Results 1 – 8 of 8) sorted by relevance

/net-tools-latest/libcoap/src/
Dcoap_io.c121 int sockfd = socket(addr->addr.sa.sa_family, SOCK_DGRAM, 0); in coap_new_endpoint() local
125 if (sockfd < 0) { in coap_new_endpoint()
130 if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) in coap_new_endpoint()
136 if (setsockopt(sockfd, IPPROTO_IP, IP_PKTINFO, &on, sizeof(on)) < 0) in coap_new_endpoint()
141 if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)) < 0) in coap_new_endpoint()
144 if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_PKTINFO, &on, sizeof(on)) < 0) in coap_new_endpoint()
153 if (bind(sockfd, &addr->addr.sa, addr->size) < 0) { in coap_new_endpoint()
155 close (sockfd); in coap_new_endpoint()
163 close(sockfd); in coap_new_endpoint()
168 ep->handle.fd = sockfd; in coap_new_endpoint()
[all …]
Dnet.c391 c->sockfd = c->endpoint->handle.fd; in coap_new_context()
/net-tools-latest/libcoap/examples/
Dcoap-server.c433 result = setsockopt(ctx->sockfd, IPPROTO_IPV6, IPV6_JOIN_GROUP, in join()
499 FD_SET( ctx->sockfd, &readfds ); in main()
525 if ( FD_ISSET( ctx->sockfd, &readfds ) ) { in main()
Dtiny.c126 if ( setsockopt( ctx->sockfd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, in main()
Dcoap-rd.c660 result = setsockopt(ctx->sockfd, in join()
724 FD_SET( ctx->sockfd, &readfds ); in main()
751 if ( FD_ISSET( ctx->sockfd, &readfds ) ) { in main()
Dclient.c1211 FD_SET( ctx->sockfd, &readfds ); in main()
1236 result = select(ctx->sockfd + 1, &readfds, 0, 0, &tv); in main()
1241 if ( FD_ISSET( ctx->sockfd, &readfds ) ) { in main()
Detsi_iot_01.c718 FD_SET( ctx->sockfd, &readfds ); in main()
744 if ( FD_ISSET( ctx->sockfd, &readfds ) ) { in main()
/net-tools-latest/libcoap/include/coap/
Dnet.h94 int sockfd; /**< send/receive socket */ member