CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
Networking

Network sockets, status and routing information More...

Collaboration diagram for Networking:

Classes

class  ClientSocket
 TCP client socket. More...
 
class  DatagramSocket
 Datagram socket. More...
 
class  ServerSocket
 TCP server socket. More...
 
class  Socket
 Abstract base class for all networking sockets. More...
 
class  SocketAddress
 Socket address More...
 
class  StreamSocket
 Byte-sequential connection oriented network communication. More...
 
class  Uri
 Uniform Resource Indentifier (URI) More...
 
class  NetworkInterface
 Query network interface configuration: assigned addresses, flags, etc. More...
 

Enumerations

enum class  ProtocolFamily : int { Unspec = PF_UNSPEC , InternetV4 = PF_INET , InternetV6 = PF_INET6 , Local = PF_LOCAL }
 Protocol family. More...
 
enum class  SocketType : int { Unspec = 0 , Stream = SOCK_STREAM , Datagram = SOCK_DGRAM }
 Socket type. More...
 
enum class  InternetProtocol : int { Unspec = 0 , Tcp = IPPROTO_TCP , Udp = IPPROTO_UDP }
 Internet protocol type. More...
 

Functions

String base64Encode (const Bytes &source)
 Base-64 encode source.
 
String base64Decode (const String &source)
 Base-64 decode source.
 
int operator+ (ProtocolFamily family)
 Prefix plus operator: shorthand to convert ProtocolFamily to int
 
String str (ProtocolFamily family)
 Stringify protocol family.
 
int operator+ (SocketType type)
 Prefix plus operator: shorthand to convert SocketType to int
 
String str (SocketType type)
 Stringify socket type.
 
int operator+ (InternetProtocol protocol)
 Prefix plus operator: shorthand to convert InternetProtocol to int
 
String str (InternetProtocol protocol)
 Stringify internet protocol.
 

Detailed Description

Network sockets, status and routing information

Enumeration Type Documentation

◆ ProtocolFamily

enum class ProtocolFamily : int
strong

Protocol family.

Enumerator
Unspec 

Protocol family is not specified

InternetV4 

Internet Protocol Version 4

InternetV6 

Internet Protocol Version 6

Local 

Unix Domain Protocol

◆ SocketType

enum class SocketType : int
strong

Socket type.

Enumerator
Unspec 

Socket type is not specified

Stream 

Reliable sequential byte streams.

Datagram 

Unrealiable message passing.

◆ InternetProtocol

enum class InternetProtocol : int
strong

Internet protocol type.

Enumerator
Unspec 

Internet protocol is not specified.

Tcp 

Transport Control Protocol (TCP)

Udp 

User Datagram Protocol (UDP)

Function Documentation

◆ base64Encode()

String base64Encode ( const Bytes & source)

Base-64 encode source.

◆ base64Decode()

String base64Decode ( const String & source)

Base-64 decode source.

Exceptions
Base64DecodeError

◆ operator+() [1/3]

int operator+ ( ProtocolFamily family)

Prefix plus operator: shorthand to convert ProtocolFamily to int

◆ str() [1/3]

String str ( ProtocolFamily family)

Stringify protocol family.

◆ operator+() [2/3]

int operator+ ( SocketType type)

Prefix plus operator: shorthand to convert SocketType to int

◆ str() [2/3]

String str ( SocketType type)

Stringify socket type.

◆ operator+() [3/3]

int operator+ ( InternetProtocol protocol)

Prefix plus operator: shorthand to convert InternetProtocol to int

◆ str() [3/3]

String str ( InternetProtocol protocol)

Stringify internet protocol.