QSC Post Quantum Cryptographic Library 1.0.0.6c (A6)
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 "common.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   1ULL
 
#define QSC_SOCKET_TIMEOUT_MSEC   10000ULL
 

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   1ULL

The length of the message string terminator character

◆ QSC_SOCKET_TIMEOUT_MSEC

#define QSC_SOCKET_TIMEOUT_MSEC   10000ULL

The default number of seconds to wait for a connection

Typedef Documentation

◆ socket_t

typedef int32_t socket_t

The socket instance handle