Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
28
extern
"C"
{
29
#endif
30
31
#ifndef __socklen_t_defined
32
#if SIZE_MAX < UINT32_MAX
33
typedef
size_t
socklen_t
;
34
#else
35
// Specification calls for at least 32 bits
36
typedef
uint32_t
socklen_t
;
37
#endif
38
#endif
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#endif
/* SYS_BYTES_H */
byteorder.h
Functions to work with different byte orders.
socklen_t
uint32_t socklen_t
socket address length
Definition
bytes.h:36
Generated on Tue Nov 19 2024 01:55:36 by
1.9.8