Home
last modified time | relevance | path

Searched refs:COAP_SOCKET_ERROR (Results 1 – 5 of 5) sorted by relevance

/third_party/libcoap/src/
Dcoap_tcp.c67 if (ioctlsocket(sock->fd, FIONBIO, &u_on) == COAP_SOCKET_ERROR) {
69 if (ioctl(sock->fd, FIONBIO, &on) == COAP_SOCKET_ERROR) {
87 …(setsockopt(sock->fd, IPPROTO_IPV6, IPV6_V6ONLY, OPTVAL_T(&off), sizeof(off)) == COAP_SOCKET_ERROR)
100 …if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR)
107 (socklen_t)local_if->size) == COAP_SOCKET_ERROR) {
116 if (connect(sock->fd, &connect_addr.addr.sa, connect_addr.size) == COAP_SOCKET_ERROR) {
135 if (getsockname(sock->fd, &local_addr->addr.sa, &local_addr->size) == COAP_SOCKET_ERROR) {
140 if (getpeername(sock->fd, &remote_addr->addr.sa, &remote_addr->size) == COAP_SOCKET_ERROR) {
167 &optlen) == COAP_SOCKET_ERROR) {
180 if (getsockname(sock->fd, &local_addr->addr.sa, &local_addr->size) == COAP_SOCKET_ERROR) {
[all …]
Dcoap_io.c178 if (ioctlsocket(sock->fd, FIONBIO, &u_on) == COAP_SOCKET_ERROR) {
180 if (ioctl(sock->fd, FIONBIO, &on) == COAP_SOCKET_ERROR) {
187 …if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR)
195 … (setsockopt(sock->fd, IPPROTO_IP, GEN_IP_PKTINFO, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR)
202 …(setsockopt(sock->fd, IPPROTO_IPV6, IPV6_V6ONLY, OPTVAL_T(&off), sizeof(off)) == COAP_SOCKET_ERROR)
207 …tsockopt(sock->fd, IPPROTO_IPV6, GEN_IPV6_PKTINFO, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR)
225 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) {
337 if (ioctlsocket(sock->fd, FIONBIO, &u_on) == COAP_SOCKET_ERROR) {
339 if (ioctl(sock->fd, FIONBIO, &on) == COAP_SOCKET_ERROR) {
356 …(setsockopt(sock->fd, IPPROTO_IPV6, IPV6_V6ONLY, OPTVAL_T(&off), sizeof(off)) == COAP_SOCKET_ERROR)
[all …]
Dcoap_gnutls.c2608 } else if (ret == COAP_SOCKET_ERROR) in coap_sock_read()
Dnet.c3471 if (result == COAP_SOCKET_ERROR) { in coap_join_mcast_group_intf()
/third_party/libcoap/include/coap3/
Dcoap_io.h39 #define COAP_SOCKET_ERROR SOCKET_ERROR macro
44 #define COAP_SOCKET_ERROR (-1) macro