Home
last modified time | relevance | path

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

/third_party/libcoap/src/
Dcoap_tcp.c70 if (ioctlsocket(sock->fd, FIONBIO, &u_on) == COAP_SOCKET_ERROR) {
72 if (ioctl(sock->fd, FIONBIO, &on) == COAP_SOCKET_ERROR) {
93 sizeof(off)) == COAP_SOCKET_ERROR)
110 …if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR)
118 (socklen_t)local_if->size) == COAP_SOCKET_ERROR) {
127 if (connect(sock->fd, &connect_addr.addr.sa, connect_addr.size) == COAP_SOCKET_ERROR) {
146 if (getsockname(sock->fd, &local_addr->addr.sa, &local_addr->size) == COAP_SOCKET_ERROR) {
151 if (getpeername(sock->fd, &remote_addr->addr.sa, &remote_addr->size) == COAP_SOCKET_ERROR) {
178 &optlen) == COAP_SOCKET_ERROR) {
190 if (getsockname(sock->fd, &local_addr->addr.sa, &local_addr->size) == COAP_SOCKET_ERROR) {
[all …]
Dcoap_io.c169 if (ioctlsocket(sock->fd, FIONBIO, &u_on) == COAP_SOCKET_ERROR) {
171 if (ioctl(sock->fd, FIONBIO, &on) == COAP_SOCKET_ERROR) {
176 …if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR)
184 sizeof(on)) == COAP_SOCKET_ERROR)
193 sizeof(off)) == COAP_SOCKET_ERROR)
198 sizeof(on)) == COAP_SOCKET_ERROR)
217 (socklen_t)sizeof(timeout)) == COAP_SOCKET_ERROR)
227 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) {
304 if (ioctlsocket(sock->fd, FIONBIO, &u_on) == COAP_SOCKET_ERROR)
306 if (ioctl(sock->fd, FIONBIO, &on) == COAP_SOCKET_ERROR)
[all …]
Dcoap_net.c4309 if (result == COAP_SOCKET_ERROR) { in coap_join_mcast_group_intf()
/third_party/libcoap/include/coap3/
Dcoap_io.h44 #define COAP_SOCKET_ERROR SOCKET_ERROR macro
49 #define COAP_SOCKET_ERROR (-1) macro