19#if defined(WITH_CONTIKI) 
   21#include "contiki-net.h" 
   30#if COAP_CLIENT_SUPPORT 
   60#if COAP_SERVER_SUPPORT 
  118#pragma GCC diagnostic ignored "-Wunused-function" 
Library specific build wrapper for coap_internal.h.
 
int coap_socket_bind_tcp(coap_socket_t *sock, const coap_address_t *listen_addr, coap_address_t *bound_addr)
Create a new TCP socket and then listen for new incoming TCP sessions.
 
ssize_t coap_socket_read(coap_socket_t *sock, uint8_t *data, size_t data_len)
Function interface for data stream receiving off a socket.
 
ssize_t coap_socket_write(coap_socket_t *sock, const uint8_t *data, size_t data_len)
Function interface for data stream sending off a socket.
 
int coap_socket_connect_tcp1(coap_socket_t *sock, const coap_address_t *local_if, const coap_address_t *server, int default_port, coap_address_t *local_addr, coap_address_t *remote_addr)
Create a new TCP socket and initiate the connection.
 
int coap_socket_accept_tcp(coap_socket_t *server, coap_socket_t *new_client, coap_address_t *local_addr, coap_address_t *remote_addr, void *extra)
Accept a new incoming TCP session.
 
void coap_socket_strm_close(coap_socket_t *sock)
Function interface to close off a stream socket.
 
int coap_socket_connect_tcp2(coap_socket_t *sock, coap_address_t *local_addr, coap_address_t *remote_addr)
Complete the TCP Connection.
 
int coap_tcp_is_supported(void)
Check whether TCP is available.
 
Multi-purpose address abstraction.