QSC Post Quantum Cryptographic Library 1.3.0.0 (C1)
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
141
145typedef enum
146{
149#if defined(QSC_SYSTEM_OS_LINUX)
151#else /* Windows, macOS, BSD */
153#endif
164
168typedef enum
169{
173#if defined(QSC_SYSTEM_OS_WINDOWS)
175#elif defined(QSC_SYSTEM_OS_MAC)
177#else /* Linux, BSD */
179#endif
181
192
202
215
216QSC_CPLUSPLUS_ENABLED_END
217
218#endif
Contains common definitions for the Quantum Secure Cryptographic (QSC) library.
qsc_socket_options
TCP socket options.
Definition socketflags.h:112
@ qsc_socket_option_receive_buffer_size
Definition socketflags.h:136
@ qsc_socket_option_tcp_no_delay
Definition socketflags.h:139
@ qsc_socket_option_broadcast
Definition socketflags.h:127
@ qsc_socket_option_out_of_band
Definition socketflags.h:132
@ qsc_socket_option_none
Definition socketflags.h:113
@ qsc_socket_option_send_buffer_size
Definition socketflags.h:137
@ qsc_socket_option_linger
Definition socketflags.h:130
@ qsc_socket_option_keepalive
Definition socketflags.h:129
@ qsc_socket_option_no_route
Definition socketflags.h:131
@ qsc_socket_option_ipv6_only
Definition socketflags.h:128
@ qsc_socket_option_reuse_address
Definition socketflags.h:133
@ qsc_socket_option_send_time_out
Definition socketflags.h:135
@ qsc_socket_option_receive_time_out
Definition socketflags.h:134
qsc_socket_transports
The socket transmission type.
Definition socketflags.h:207
@ qsc_socket_transport_raw
Definition socketflags.h:211
@ qsc_socket_transport_sequenced
Definition socketflags.h:213
@ qsc_socket_transport_datagram
Definition socketflags.h:210
@ qsc_socket_transport_reliable
Definition socketflags.h:212
@ qsc_socket_transport_none
Definition socketflags.h:208
@ qsc_socket_transport_stream
Definition socketflags.h:209
qsc_socket_shut_down_flags
The socket shutdown api flags.
Definition socketflags.h:197
@ qsc_socket_shut_down_flag_both
Definition socketflags.h:200
@ qsc_socket_shut_down_flag_send
Definition socketflags.h:199
@ qsc_socket_shut_down_flag_receive
Definition socketflags.h:198
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:169
@ qsc_socket_receive_flag_peek
Definition socketflags.h:172
@ qsc_socket_receive_flag_out_of_band
Definition socketflags.h:171
@ qsc_socket_receive_flag_wait_all
Definition socketflags.h:178
@ qsc_socket_receive_flag_none
Definition socketflags.h:170
qsc_socket_send_flags
The socket send api flags.
Definition socketflags.h:186
@ qsc_socket_send_flag_none
Definition socketflags.h:187
@ qsc_socket_send_flag_no_routing
Definition socketflags.h:190
@ qsc_socket_send_flag_send_oob
Definition socketflags.h:188
@ qsc_socket_send_flag_peek_message
Definition socketflags.h:189
qsc_socket_protocols
The socket IP protocol type.
Definition socketflags.h:146
@ qsc_socket_protocol_raw
Definition socketflags.h:162
@ qsc_socket_protocol_icmpv6
Definition socketflags.h:159
@ qsc_socket_protocol_tcp
Definition socketflags.h:154
@ qsc_socket_protocol_dstopts
Definition socketflags.h:161
@ qsc_socket_protocol_udp
Definition socketflags.h:155
@ qsc_socket_protocol_ipv6_routing
Definition socketflags.h:157
@ qsc_socket_protocol_socket
Definition socketflags.h:152
@ qsc_socket_protocol_ipv6
Definition socketflags.h:156
@ qsc_socket_protocol_ipv6_no_header
Definition socketflags.h:160
@ qsc_socket_protocol_ipv4
Definition socketflags.h:148
@ qsc_socket_protocol_none
Definition socketflags.h:147
@ qsc_socket_protocol_ipv6_fragment
Definition socketflags.h:158