QSC Post Quantum Cryptographic Library 1.1.0.2 (B2)
A post quantum secure library written in Ansi C
Loading...
Searching...
No Matches
socket.h File Reference

TCP/IP function constants and structures. More...

#include "qsccommon.h"
#include "socketflags.h"

Go to the source code of this file.

Data Structures

struct  qsc_socket
 The socket instance structure. More...

Macros

#define QSC_SOCKET_ADDRESS_MAX_SIZE   65ULL
#define QSC_SOCKET_MAX_CONN   0x7FFFFFFFL
#define QSC_SOCKET_RET_ERROR   -1LL
#define QSC_SOCKET_RET_SUCCESS   0LL
#define QSC_SOCKET_TERMINATOR_SIZE   1U
#define QSC_SOCKET_TIMEOUT_MSEC   10000U
#define QSC_UNINITIALIZED_SOCKET   ((socket_t)-1)

Typedefs

typedef int32_t socket_t

Detailed Description

TCP/IP function constants and structures.

Macro Definition Documentation

◆ QSC_SOCKET_ADDRESS_MAX_SIZE

#define QSC_SOCKET_ADDRESS_MAX_SIZE   65ULL

The maximum string length of an address

◆ QSC_SOCKET_MAX_CONN

#define QSC_SOCKET_MAX_CONN   0x7FFFFFFFL

The maximum number of simultaneous connections

◆ QSC_SOCKET_RET_ERROR

#define QSC_SOCKET_RET_ERROR   -1LL

The base socket error flag

◆ QSC_SOCKET_RET_SUCCESS

#define QSC_SOCKET_RET_SUCCESS   0LL

The base socket success flag

◆ QSC_SOCKET_TERMINATOR_SIZE

#define QSC_SOCKET_TERMINATOR_SIZE   1U

The length of the message string terminator character

◆ QSC_SOCKET_TIMEOUT_MSEC

#define QSC_SOCKET_TIMEOUT_MSEC   10000U

The default number of seconds to wait for a connection

◆ QSC_UNINITIALIZED_SOCKET

#define QSC_UNINITIALIZED_SOCKET   ((socket_t)-1)

\const QSC_UNINITIALIZED_SOCKET An uninitialized socket handle

Typedef Documentation

◆ socket_t

typedef int32_t socket_t

The socket instance handle