Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
Group_socket

Classes

struct  SC::SocketFlags
 Flags for SocketDescriptor (Blocking / Inheritable, IPVx, SocketType) More...
 
struct  SC::SocketIPAddress
 Native representation of an IP Address. More...
 
struct  SC::SocketAddress
 Family-neutral native socket address. More...
 
struct  SC::SocketDescriptor
 Low-level OS socket handle. More...
 
struct  SC::SocketServer
 Use a SocketDescriptor as a Server (example TCP or UDP Socket Server). More...
 
struct  SC::SocketClient
 Use a SocketDescriptor as a client (example a TCP or UDP socket client). More...
 
struct  SC::SocketDNS
 Synchronous DNS Resolution. More...
 
struct  SC::SocketNetworking
 Networking globals initialization (Winsock2 WSAStartup) More...
 
union  SC::SocketErrorContext
 A typed scalar payload for a Socket error. Its interpretation is selected by SocketErrorContextKind. More...
 
struct  SC::ResultSocket
 Socket result retaining a stable operation detail and one scalar diagnostic context. More...
 

Enumerations

enum class  SC::SocketError : uint32_t {
  NetworkingNotInitialized = 1 ,
  UnsupportedTextEncoding ,
  InputCapacityExceeded ,
  InvalidIPAddress ,
  InvalidAddress ,
  AddressTypeMismatch ,
  AddressFamilyMismatch ,
  OperationUnsupported ,
  InvalidSocket ,
  DestinationSocketInUse ,
  InvalidShutdownType ,
  SocketCreationFailed ,
  SocketCloseFailed ,
  DescriptorQueryFailed ,
  DescriptorConfigurationFailed ,
  SocketOptionFailed ,
  ShutdownFailed ,
  BindFailed ,
  AddressInUse ,
  ListenFailed ,
  AcceptFailed ,
  ConnectFailed ,
  SendFailed ,
  ReceiveFailed ,
  IncompleteSend ,
  DatagramTruncated ,
  WouldBlock ,
  TimedOut ,
  DNSResolutionFailed ,
  OutputCapacityExceeded
}
 Stable portable failures returned by the Socket library. More...
 
enum class  SC::SocketErrorDetail : uint16_t {
  None = 0 ,
  ParseIPv4Address ,
  ParseIPv6Address ,
  BuildUnixPathAddress ,
  BuildUnixAbstractAddress ,
  ExtractIPAddress ,
  ExtractUnixAddress ,
  CopyHostName ,
  ResolveHostName ,
  CopyResolvedAddress ,
  GetSocketAddress ,
  PosixCloseDescriptor ,
  WindowsCloseSocket ,
  PosixGetDescriptorFlags ,
  PosixSetDescriptorFlags ,
  WindowsGetHandleInformation ,
  WindowsSetHandleInformation ,
  WindowsSetBlocking ,
  CreateSocket ,
  SetTcpNoDelay ,
  SetBroadcast ,
  JoinIPv4Multicast ,
  JoinIPv6Multicast ,
  LeaveIPv4Multicast ,
  LeaveIPv6Multicast ,
  SetIPv4MulticastLoopback ,
  SetIPv6MulticastLoopback ,
  SetIPv4MulticastHops ,
  SetIPv6MulticastHops ,
  SetIPv4MulticastInterface ,
  SetIPv6MulticastInterface ,
  ShutdownSocket ,
  SendDatagram ,
  ReceiveDatagram ,
  BindSocket ,
  ListenSocket ,
  AcceptConnection ,
  ConnectSocket ,
  SendStream ,
  ReceiveStream ,
  WaitForRead
}
 Stable operation or backend stage retained for a Socket failure. More...
 
enum class  SC::SocketErrorContextKind : uint16_t {
  None = 0 ,
  NativeError ,
  ResolverError ,
  RequiredBytes ,
  ActualBytes
}
 Kind of the scalar diagnostic context stored in ResultSocket. More...
 

Detailed Description

Enumeration Type Documentation

◆ SocketError

enum class SC::SocketError : uint32_t
strong

#include <SocketError.h>

Stable portable failures returned by the Socket library.

◆ SocketErrorContextKind

enum class SC::SocketErrorContextKind : uint16_t
strong

#include <SocketError.h>

Kind of the scalar diagnostic context stored in ResultSocket.

◆ SocketErrorDetail

enum class SC::SocketErrorDetail : uint16_t
strong

#include <SocketError.h>

Stable operation or backend stage retained for a Socket failure.