libcoap  4.3.0
coap_io.h File Reference
#include <sys/types.h>
#include "address.h"
+ Include dependency graph for coap_io.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  coap_addr_tuple_t
 

Macros

#define COAP_RXBUFFER_SIZE   1472
 
#define COAP_MAX_EPOLL_EVENTS   10
 
#define coap_closesocket   close
 
#define COAP_SOCKET_ERROR   (-1)
 
#define COAP_INVALID_SOCKET   (-1)
 

Typedefs

typedef int coap_fd_t
 
typedef uint16_t coap_socket_flags_t
 
typedef struct coap_addr_tuple_t coap_addr_tuple_t
 

Enumerations

enum  coap_nack_reason_t {
  COAP_NACK_TOO_MANY_RETRIES , COAP_NACK_NOT_DELIVERABLE , COAP_NACK_RST , COAP_NACK_TLS_FAILED ,
  COAP_NACK_ICMP_ISSUE
}
 

Functions

const char * coap_socket_strerror (void)
 
int coap_tcp_is_supported (void)
 Check whether TCP is available. More...
 

Macro Definition Documentation

◆ coap_closesocket

#define coap_closesocket   close

Definition at line 43 of file coap_io.h.

◆ COAP_INVALID_SOCKET

#define COAP_INVALID_SOCKET   (-1)

Definition at line 45 of file coap_io.h.

◆ COAP_MAX_EPOLL_EVENTS

#define COAP_MAX_EPOLL_EVENTS   10

Definition at line 33 of file coap_io.h.

◆ COAP_RXBUFFER_SIZE

#define COAP_RXBUFFER_SIZE   1472

Definition at line 24 of file coap_io.h.

◆ COAP_SOCKET_ERROR

#define COAP_SOCKET_ERROR   (-1)

Definition at line 44 of file coap_io.h.

Typedef Documentation

◆ coap_addr_tuple_t

◆ coap_fd_t

typedef int coap_fd_t

Definition at line 42 of file coap_io.h.

◆ coap_socket_flags_t

typedef uint16_t coap_socket_flags_t

Definition at line 48 of file coap_io.h.

Enumeration Type Documentation

◆ coap_nack_reason_t

Enumerator
COAP_NACK_TOO_MANY_RETRIES 
COAP_NACK_NOT_DELIVERABLE 
COAP_NACK_RST 
COAP_NACK_TLS_FAILED 
COAP_NACK_ICMP_ISSUE 

Definition at line 64 of file coap_io.h.

Function Documentation

◆ coap_socket_strerror()

const char* coap_socket_strerror ( void  )

Definition at line 1502 of file coap_io.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coap_tcp_is_supported()

int coap_tcp_is_supported ( void  )

Check whether TCP is available.

Returns
1 if support for TCP is enabled, or 0 otherwise.

Definition at line 33 of file coap_tcp.c.

+ Here is the caller graph for this function: