Loading...
Searching...
No Matches
bytes.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include <stddef.h>
21
22#include "byteorder.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#ifndef __socklen_t_defined
29#if SIZE_MAX < UINT32_MAX
30typedef size_t socklen_t;
31#else
32// Specification calls for at least 32 bits
33typedef uint32_t socklen_t;
34#endif
35#endif
36
37#ifdef __cplusplus
38}
39#endif
40
Functions to work with different byte orders.
uint32_t socklen_t
socket address length
Definition bytes.h:33