Searched refs:sockfd (Results 1 – 8 of 8) sorted by relevance
/net-tools-latest/libcoap/src/ |
D | coap_io.c | 121 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 …]
|
D | net.c | 391 c->sockfd = c->endpoint->handle.fd; in coap_new_context()
|
/net-tools-latest/libcoap/examples/ |
D | coap-server.c | 433 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()
|
D | tiny.c | 126 if ( setsockopt( ctx->sockfd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, in main()
|
D | coap-rd.c | 660 result = setsockopt(ctx->sockfd, in join() 724 FD_SET( ctx->sockfd, &readfds ); in main() 751 if ( FD_ISSET( ctx->sockfd, &readfds ) ) { in main()
|
D | client.c | 1211 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()
|
D | etsi_iot_01.c | 718 FD_SET( ctx->sockfd, &readfds ); in main() 744 if ( FD_ISSET( ctx->sockfd, &readfds ) ) { in main()
|
/net-tools-latest/libcoap/include/coap/ |
D | net.h | 94 int sockfd; /**< send/receive socket */ member
|