58QSC_CPLUSPLUS_ENABLED_START
69#define QSC_SOCKET_ADDRESS_MAX_SIZE 65ULL
75#define QSC_SOCKET_MAX_CONN 0x7FFFFFFFL
81#define QSC_SOCKET_RET_ERROR -1LL
87#define QSC_SOCKET_RET_SUCCESS 0LL
93#define QSC_SOCKET_TERMINATOR_SIZE 1U
99#define QSC_SOCKET_TIMEOUT_MSEC 10000U
101#if defined(QSC_SYSTEM_OS_WINDOWS)
106typedef int32_t socklen_t;
113#if defined(QSC_SYSTEM_OS_WINDOWS)
123#if defined(QSC_SYSTEM_OS_WINDOWS)
124# define QSC_UNINITIALIZED_SOCKET ((socket_t)(uintptr_t)~0U)
126# define QSC_UNINITIALIZED_SOCKET ((socket_t)-1)
144QSC_CPLUSPLUS_ENABLED_END
Contains common definitions for the Quantum Secure Cryptographic (QSC) library.
#define QSC_EXPORT_API
API export macro for Microsoft compilers when importing from a DLL.
Definition qsccommon.h:645
#define QSC_SOCKET_ADDRESS_MAX_SIZE
Definition socket.h:69
int32_t socket_t
Definition socket.h:116
The socket flags enumerations.
qsc_socket_transports
The socket transmission type.
Definition socketflags.h:207
qsc_socket_states
The socket instance current connection state.
Definition socketflags.h:101
qsc_socket_address_families
The socket address family type.
Definition socketflags.h:80
qsc_socket_protocols
The socket IP protocol type.
Definition socketflags.h:146
The socket instance structure.
Definition socket.h:133
qsc_socket_address_families address_family
Definition socket.h:138
uint16_t port
Definition socket.h:137
uint32_t instance
Definition socket.h:136
char address[QSC_SOCKET_ADDRESS_MAX_SIZE]
Definition socket.h:135
qsc_socket_states connection_status
Definition socket.h:139
qsc_socket_protocols socket_protocol
Definition socket.h:140
qsc_socket_transports socket_transport
Definition socket.h:141
socket_t connection
Definition socket.h:134