Simple++
Powerfull and lightning fast C++ Library
Classes | Enumerations
Network Namespace Reference

Classes

class  Address
 Extended and safer version of AddrInfo. More...
 
class  AddrInfo
 Representing a struct addrinfo, all the info of an address without the "list" side ai_next is not used. This class can be down casted freely to struct addrinfo. Warning when using this class, you may prefer using Address Class which is more safer. More...
 
class  Connection
 Connection/Socket Class. More...
 
class  Network
 
class  Server
 Represent a listening server who can handle multiple protocol or ip family. More...
 

Enumerations

enum  IpFamily : int { IpFamily::IPv4 = PF_INET, IpFamily::IPv6 = PF_INET6, IpFamily::Undefined = PF_UNSPEC }
 
enum  SockType : int { SockType::TCP = SOCK_STREAM, SockType::UDP = SOCK_DGRAM }
 
enum  Flags : unsigned int { Flags::Passive = AI_PASSIVE, Flags::NumericHost = AI_NUMERICHOST }
 
enum  Error : int { Error::NoError = 0, Error::HostNotFound = 1, Error::SocketError = 2 }
 

Enumeration Type Documentation

enum Network::Error : int
strong
Enumerator
NoError 
HostNotFound 
SocketError 
enum Network::Flags : unsigned int
strong
Enumerator
Passive 
NumericHost 
enum Network::IpFamily : int
strong
Enumerator
IPv4 
IPv6 
Undefined 
enum Network::SockType : int
strong
Enumerator
TCP 
UDP