Loading...
Searching...
No Matches
sock.h File Reference

Common sock API definitions. More...

Detailed Description

Common sock API definitions.

Author
Martine Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file sock.h.

#include <stdint.h>
#include <stddef.h>
#include "iolist.h"
+ Include dependency graph for sock.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sock_ip_ep_t
 Abstract IP end point and end point for a raw IP sock object. More...
 
struct  _sock_tl_ep
 Common IP-based transport layer end point. More...
 

Macros

#define SOCK_ADDR_ANY_NETIF   (0)
 Special netif ID for "any interface".
 
#define SOCK_IPV4_EP_ANY
 Address to bind to any IPv4 address.
 
#define SOCK_IPV6_EP_ANY
 Address to bind to any IPv6 address.
 
#define SOCK_NO_TIMEOUT   (UINT32_MAX)
 Special value meaning "wait forever" (don't timeout)
 

Typedefs

typedef uint8_t sock_aux_flags_t
 Type holding the flags used to request specific auxiliary data.
 

Enumerations

enum  {
  SOCK_AUX_GET_LOCAL = (1LU << 0) , SOCK_AUX_GET_TIMESTAMP = (1LU << 1) , SOCK_AUX_GET_RSSI = (1LU << 2) , SOCK_AUX_SET_LOCAL = (1LU << 3) ,
  SOCK_AUX_GET_TTL = (1LU << 4)
}
 Flags used to request auxiliary data. More...
 

Compile flags

Flags to (de)activate certain functionalities

#define SOCK_HAS_IPV6
 activate IPv6 support
 
#define SOCK_HAS_ASYNC
 activate asynchronous event functionality
 
#define SOCK_HAS_ASYNC_CTX
 Activate context for asynchronous events.
 

Sock flags

Common flags for Sock API

#define SOCK_FLAGS_REUSE_EP   (0x0001)
 allow to reuse end point on bind
 
#define SOCK_FLAGS_CONNECT_REMOTE   (0x0002)
 restrict responses to remote address