Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::SocketFlags Struct Reference

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

#include <Socket.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 ,
  AddressFamilyUnix
}
 Sets the socket address family. More...
 
enum  SocketType {
  SocketStream ,
  SocketDgram
}
 Sets the socket type to datagram or stream. More...
 
enum  ProtocolType {
  ProtocolTcp ,
  ProtocolUdp ,
  ProtocolDefault
}
 Sets the socket protocol type. More...
 
enum  ShutdownType { ShutdownBoth }
 Sets the type of shutdown to perform. More...
 

Friends

struct SocketDescriptor
 
struct SocketAddress
 
struct SocketIPAddressInternal
 

Detailed Description

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

Member Enumeration Documentation

◆ AddressFamily

Sets the socket address family.

Enumerator
AddressFamilyIPV4 

IP Address is IPV4.

AddressFamilyIPV6 

IP Address is IPV6.

AddressFamilyUnix 

Local Unix-domain address.

◆ BlockingType

Sets the socket as blocking / nonblocking mode.

Enumerator
NonBlocking 

SocketDescriptor is in non-blocking mode.

Blocking 

SocketDescriptor is in blocking mode.

◆ InheritableType

Sets the socket inheritable behaviour for child processes.

Enumerator
NonInheritable 

SocketDescriptor will not be inherited by child processes.

Inheritable 

SocketDescriptor will be inherited by child processes.

◆ ProtocolType

Sets the socket protocol type.

Enumerator
ProtocolTcp 

The protocol is TCP.

ProtocolUdp 

The protocol is UDP.

ProtocolDefault 

Use the default protocol for the address family and socket type.

◆ ShutdownType

Sets the type of shutdown to perform.

Enumerator
ShutdownBoth 

Shuts down the socket for both reading and writing.

◆ SocketType

Sets the socket type to datagram or stream.

Enumerator
SocketStream 

Streaming socket (for TCP and Unix-domain streams)

SocketDgram 

Datagram socket (for UDP and Unix-domain datagrams)


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