1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00
RIOT/sys/include/net/sock/flags.h
Martine Lenders 7ef177a8cb sock: Introduction of new application layer API
This introduces a new alternative and better API to `conn`. It differs in the
following aspects:

* a common address type for both IPv4 and IPv6 addresses is introduced
* communication end-points are abstracted as end-point types `sock_x_ep_t`,
  containing the address, its family, its port (if required for protocol) and
  the interface identifier.
* All functions require some kind of state. Sending of datagrams to the same
  source or replying to incoming datagrams is thus simplified
* TCP connection establishment was overall reworked: connected sockets and
  listening sockets are now two distinct types. An accept on a listening socket
  than yields a connected socket
2016-08-18 12:25:41 +02:00

40 lines
844 B
C

/*
* Copyright (C) 2016 Freie Univesität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup net_sock_flags Common flags for @ref net_sock
* @ingroup net_sock
* @brief Common flags for usage with @ref net_sock
* @{
*
* @file
* @brief Common flags definitions for usage with @ref net_sock
*
* @author Martine Lenders <m.lenders@fu-berlin.de>
*/
#ifndef NET_SOCK_FLAGS_H_
#define NET_SOCK_FLAGS_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Common flags for @ref net_conn
* @{
*/
#define SOCK_FLAGS_REUSE_EP (0x00000001) /**< allow to reuse end point on bind */
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* NET_SOCK_FLAGS_H_ */
/** @} */