Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::SocketFlags Struct Reference

Flags for SocketDescriptor (Blocking / Inheritable, IPVx, SocketType) More...

#include <SocketDescriptor.h>

Public Types

enum  BlockingType {
  NonBlocking ,
  Blocking
}
 Sets the socket as blocking / nonblocking mode. More...
 
enum  InheritableType {
  NonInheritable ,
  Inheritable
}
 Sets the socket inheritable behaviour for child processes. More...
 
enum  AddressFamily {
  AddressFamilyIPV4 ,
  AddressFamilyIPV6
}
 Sets the address family of an IP Address (IPv4 or IPV6) More...
 
enum  SocketType {
  SocketStream ,
  SocketDgram
}
 Sets the socket type, if it's a Datagram (for UDP) or Streaming (for TCP and others) More...
 
enum  ProtocolType {
  ProtocolTcp ,
  ProtocolUdp
}
 Sets the socket protocol type. More...
 

Friends

struct SocketDescriptor
 
struct SocketIPAddressInternal
 

Detailed Description

Flags for SocketDescriptor (Blocking / Inheritable, IPVx, SocketType)

Member Enumeration Documentation

◆ AddressFamily

Sets the address family of an IP Address (IPv4 or IPV6)

Enumerator
AddressFamilyIPV4 

IP Address is IPV4.

AddressFamilyIPV6 

IP Address is IPV6.

◆ BlockingType

Sets the socket as blocking / nonblocking mode.

Enumerator
NonBlocking 

Socket is in non-blocking mode.

Blocking 

Socket is in blocking mode.

◆ InheritableType

Sets the socket inheritable behaviour for child processes.

Enumerator
NonInheritable 

Socket will not be inherited by child processes.

Inheritable 

Socket will be inherited by child processes.

◆ ProtocolType

Sets the socket protocol type.

Enumerator
ProtocolTcp 

The protocol is TCP.

ProtocolUdp 

The protocol is UDP.

◆ SocketType

Sets the socket type, if it's a Datagram (for UDP) or Streaming (for TCP and others)

Enumerator
SocketStream 

Sets the socket type as Streaming type (for TCP and others)

SocketDgram 

Sets the socket type as Streaming type (for UDP)


The documentation for this struct was generated from the following file: