30 #include "net/sock/config.h" 
   32 #if MODULE_GNRC_SOCK_UDP || MODULE_LWIP_SOCK_UDP || DOXYGEN 
   34 #  define SOCK_HAS_UDP  1    
   36 #if MODULE_GNRC_SOCK_TCP || MODULE_LWIP_SOCK_TCP || DOXYGEN 
   38 #  define SOCK_HAS_TCP  1    
   40 #ifdef MODULE_SOCK_DTLS 
   45 #if MODULE_GNRC_SOCK_UDP || MODULE_LWIP_SOCK_UDP ||MODULE_GNRC_SOCK_TCP || MODULE_LWIP_SOCK_TCP || DOXYGEN 
   46 #  define HAVE_SOCK_TL_EP   1  
   97                    char *addr_str, uint16_t *port);
 
   99 #if IS_ACTIVE(SOCK_HAS_TCP) || DOXYGEN 
  111                                   char *addr_str, uint16_t *port)
 
  117 #if IS_ACTIVE(SOCK_HAS_UDP) || DOXYGEN 
  129                                   char *addr_str, uint16_t *port)
 
  165 #if IS_ACTIVE(SOCK_HAS_TCP) || DOXYGEN 
  203 #if IS_ACTIVE(SOCK_HAS_UDP) || DOXYGEN 
  257 #if IS_ACTIVE(SOCK_HAS_TCP) || DOXYGEN 
  278 #if IS_ACTIVE(SOCK_HAS_UDP) || DOXYGEN 
  300 #if defined(MODULE_SOCK_DTLS) || DOXYGEN 
  320                                 void *work_buf, 
size_t work_buf_len);
 
(D)TLS credentials management module definitions
 
uint16_t credman_tag_t
Tag of the credential.
 
const char * sock_urlpath(const char *url)
Returns a pointer to the path component in url.
 
bool sock_tl_ep_equal(const struct _sock_tl_ep *a, const struct _sock_tl_ep *b)
Compare the two given common IP-based transport layer endpoints.
 
static int sock_tcp_ep_fmt(const sock_tcp_ep_t *endpoint, char *addr_str, uint16_t *port)
Format TCP endpoint to string and port.
 
int sock_tl_str2ep(struct _sock_tl_ep *ep_out, const char *str)
Convert string to common IP-based transport layer endpoint.
 
static int sock_udp_name2ep(sock_udp_ep_t *ep_out, const char *str)
Convert string to UDP endpoint If the sock_dns module is used, this will do a DNS lookup if str is no...
 
static bool sock_udp_ep_equal(const sock_udp_ep_t *a, const sock_udp_ep_t *b)
Compare the two given UDP endpoints.
 
int sock_tl_name2ep(struct _sock_tl_ep *ep_out, const char *str)
Convert string to common IP-based transport layer endpoint If the sock_dns module is used,...
 
static int sock_udp_ep_fmt(const sock_udp_ep_t *endpoint, char *addr_str, uint16_t *port)
Format UDP endpoint to string and port.
 
int sock_dtls_establish_session(sock_udp_t *sock_udp, sock_dtls_t *sock_dtls, sock_dtls_session_t *session, credman_tag_t tag, sock_udp_ep_t *local, const sock_udp_ep_t *remote, void *work_buf, size_t work_buf_len)
Helper function to establish a DTLS connection.
 
int sock_tl_ep_fmt(const struct _sock_tl_ep *endpoint, char *addr_str, uint16_t *port)
Format common IP-based transport layer endpoint to string and port.
 
int sock_urlsplit(const char *url, char *hostport, char *urlpath)
Split url to host:port and url path.
 
static int sock_tcp_str2ep(sock_tcp_ep_t *ep_out, const char *str)
Convert string to TCP endpoint.
 
static bool sock_tcp_ep_equal(const sock_tcp_ep_t *a, const sock_tcp_ep_t *b)
Compare the two given TCP endpoints.
 
static int sock_udp_str2ep(sock_udp_ep_t *ep_out, const char *str)
Convert string to UDP endpoint.
 
static int sock_tcp_name2ep(sock_tcp_ep_t *ep_out, const char *str)
Convert string to TCP endpoint If the sock_dns module is used, this will do a DNS lookup if str is no...
 
Common IP-based transport layer end point.
 
Information about remote client connected to the server.
 
Information about DTLS sock.