Loading...
Searching...
No Matches
bytes.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
20#ifndef SYS_BYTES_H
21#define SYS_BYTES_H
22
23#include <stddef.h>
24
25#include "byteorder.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#ifndef __socklen_t_defined
32#if SIZE_MAX < UINT32_MAX
33typedef size_t socklen_t;
34#else
35// Specification calls for at least 32 bits
36typedef uint32_t socklen_t;
37#endif
38#endif
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* SYS_BYTES_H */
Functions to work with different byte orders.
uint32_t socklen_t
socket address length
Definition bytes.h:36