QSC Post Quantum Cryptographic Library 1.1.0.2 (B2)
A post quantum secure library written in Ansi C
Loading...
Searching...
No Matches
socketflags.h
Go to the documentation of this file.
1/* 2020-2026 Quantum Resistant Cryptographic Solutions Corporation
2 * All Rights Reserved.
3 *
4 * NOTICE:
5 * This software and all accompanying materials are the exclusive property of
6 * Quantum Resistant Cryptographic Solutions Corporation (QRCS). The intellectual
7 * and technical concepts contained herein are proprietary to QRCS and are
8 * protected under applicable Canadian, U.S., and international copyright,
9 * patent, and trade secret laws.
10 *
11 * CRYPTOGRAPHIC ALGORITHMS AND IMPLEMENTATIONS:
12 * - This software includes implementations of cryptographic primitives and
13 * algorithms that are standardized or in the public domain, such as AES
14 * and SHA-3, which are not proprietary to QRCS.
15 * - This software also includes cryptographic primitives, constructions, and
16 * algorithms designed by QRCS, including but not limited to RCS, SCB, CSX, QMAC, and
17 * related components, which are proprietary to QRCS.
18 * - All source code, implementations, protocol compositions, optimizations,
19 * parameter selections, and engineering work contained in this software are
20 * original works of QRCS and are protected under this license.
21 *
22 * LICENSE AND USE RESTRICTIONS:
23 * - This software is licensed under the Quantum Resistant Cryptographic Solutions
24 * Public Research and Evaluation License (QRCS-PREL), 2025-2026.
25 * - Permission is granted solely for non-commercial evaluation, academic research,
26 * cryptographic analysis, interoperability testing, and feasibility assessment.
27 * - Commercial use, production deployment, commercial redistribution, or
28 * integration into products or services is strictly prohibited without a
29 * separate written license agreement executed with QRCS.
30 * - Licensing and authorized distribution are solely at the discretion of QRCS.
31 *
32 * EXPERIMENTAL CRYPTOGRAPHY NOTICE:
33 * Portions of this software may include experimental, novel, or evolving
34 * cryptographic designs. Use of this software is entirely at the user's risk.
35 *
36 * DISCLAIMER:
37 * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38 * IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS
39 * FOR A PARTICULAR PURPOSE, SECURITY, OR NON-INFRINGEMENT. QRCS DISCLAIMS ALL
40 * LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
41 * ARISING FROM THE USE OR MISUSE OF THIS SOFTWARE.
42 *
43 * FULL LICENSE:
44 * This software is subject to the Quantum Resistant Cryptographic Solutions
45 * Public Research and Evaluation License (QRCS-PREL), 2025-2026. The complete license terms
46 * are provided in the accompanying LICENSE file or at https://www.qrcscorp.ca.
47 *
48 * Written by: John G. Underhill
49 * Contact: contact@qrcscorp.ca
50 */
51
52#ifndef QSC_SOCKFLAGS_H
53#define QSC_SOCKFLAGS_H
54
55#include "qsccommon.h"
56
57QSC_CPLUSPLUS_ENABLED_START
58
63
75
79typedef enum
80{
84#if defined(QSC_SYSTEM_OS_WINDOWS)
86#elif defined(QSC_SYSTEM_OS_LINUX)
88#elif defined(QSC_SYSTEM_OS_MAC)
90#elif defined(QSC_SYSTEM_OS_FREEBSD)
92#else /* OpenBSD, NetBSD, and other POSIX */
94#endif
96
107
137
141typedef enum
142{
145#if defined(QSC_SYSTEM_OS_LINUX)
147#else /* Windows, macOS, BSD */
149#endif
160
164typedef enum
165{
169#if defined(QSC_SYSTEM_OS_WINDOWS)
171#elif defined(QSC_SYSTEM_OS_MAC)
173#else /* Linux, BSD */
175#endif
177
188
198
211
212QSC_CPLUSPLUS_ENABLED_END
213
214#endif
Contains common definitions for the Quantum Secure Cryptographic (QSC) library.
qsc_socket_options
TCP socket options.
Definition socketflags.h:112
@ qsc_socket_option_tcp_no_delay
Definition socketflags.h:135
@ qsc_socket_option_broadcast
Definition socketflags.h:125
@ qsc_socket_option_out_of_band
Definition socketflags.h:130
@ qsc_socket_option_none
Definition socketflags.h:113
@ qsc_socket_option_linger
Definition socketflags.h:128
@ qsc_socket_option_keepalive
Definition socketflags.h:127
@ qsc_socket_option_no_route
Definition socketflags.h:129
@ qsc_socket_option_ipv6_only
Definition socketflags.h:126
@ qsc_socket_option_reuse_address
Definition socketflags.h:131
@ qsc_socket_option_send_time_out
Definition socketflags.h:133
@ qsc_socket_option_receive_time_out
Definition socketflags.h:132
qsc_socket_transports
The socket transmission type.
Definition socketflags.h:203
@ qsc_socket_transport_raw
Definition socketflags.h:207
@ qsc_socket_transport_sequenced
Definition socketflags.h:209
@ qsc_socket_transport_datagram
Definition socketflags.h:206
@ qsc_socket_transport_reliable
Definition socketflags.h:208
@ qsc_socket_transport_none
Definition socketflags.h:204
@ qsc_socket_transport_stream
Definition socketflags.h:205
qsc_socket_shut_down_flags
The socket shutdown api flags.
Definition socketflags.h:193
@ qsc_socket_shut_down_flag_both
Definition socketflags.h:196
@ qsc_socket_shut_down_flag_send
Definition socketflags.h:195
@ qsc_socket_shut_down_flag_receive
Definition socketflags.h:194
qsc_socket_states
The socket instance current connection state.
Definition socketflags.h:101
@ qsc_socket_state_none
Definition socketflags.h:102
@ qsc_socket_state_listening
Definition socketflags.h:104
@ qsc_socket_state_connectionless
Definition socketflags.h:105
@ qsc_socket_state_connected
Definition socketflags.h:103
qsc_ipv6_address_prefix_types
IPv6 address prefixes.
Definition socketflags.h:68
@ qsc_ipv6_prefix_unique_local
Definition socketflags.h:73
@ qsc_ipv6_prefix_multicast
Definition socketflags.h:71
@ qsc_ipv6_prefix_link_local
Definition socketflags.h:70
@ qsc_ipv6_prefix_none
Definition socketflags.h:69
@ qsc_ipv6_prefix_global
Definition socketflags.h:72
qsc_socket_address_families
The socket address family type.
Definition socketflags.h:80
@ qsc_socket_address_family_ipv6
Definition socketflags.h:93
@ qsc_socket_address_family_none
Definition socketflags.h:81
@ qsc_socket_address_family_unix
Definition socketflags.h:82
@ qsc_socket_address_family_ipv4
Definition socketflags.h:83
qsc_socket_receive_flags
The socket receive api flags.
Definition socketflags.h:165
@ qsc_socket_receive_flag_peek
Definition socketflags.h:168
@ qsc_socket_receive_flag_out_of_band
Definition socketflags.h:167
@ qsc_socket_receive_flag_wait_all
Definition socketflags.h:174
@ qsc_socket_receive_flag_none
Definition socketflags.h:166
qsc_socket_send_flags
The socket send api flags.
Definition socketflags.h:182
@ qsc_socket_send_flag_none
Definition socketflags.h:183
@ qsc_socket_send_flag_no_routing
Definition socketflags.h:186
@ qsc_socket_send_flag_send_oob
Definition socketflags.h:184
@ qsc_socket_send_flag_peek_message
Definition socketflags.h:185
qsc_socket_protocols
The socket IP protocol type.
Definition socketflags.h:142
@ qsc_socket_protocol_raw
Definition socketflags.h:158
@ qsc_socket_protocol_icmpv6
Definition socketflags.h:155
@ qsc_socket_protocol_tcp
Definition socketflags.h:150
@ qsc_socket_protocol_dstopts
Definition socketflags.h:157
@ qsc_socket_protocol_udp
Definition socketflags.h:151
@ qsc_socket_protocol_ipv6_routing
Definition socketflags.h:153
@ qsc_socket_protocol_socket
Definition socketflags.h:148
@ qsc_socket_protocol_ipv6
Definition socketflags.h:152
@ qsc_socket_protocol_ipv6_no_header
Definition socketflags.h:156
@ qsc_socket_protocol_ipv4
Definition socketflags.h:144
@ qsc_socket_protocol_none
Definition socketflags.h:143
@ qsc_socket_protocol_ipv6_fragment
Definition socketflags.h:154