v0.1.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Pages
CGUL::Network Namespace Reference

An experimental network namespace. More...

Namespaces

 IPAddressType
 A list of supported IP address types.
 

Classes

struct  Adapter
 Contains information about a network interface. More...
 
class  DNS
 Utility class used to perform DNS lookups. More...
 
struct  Header
 A structure containing the response header for HTTPRequests. More...
 
class  HTTPRequest
 A class to connect to webpages and request data. More...
 
class  IPAddress
 Utility class to handle IPv4 or IPv6 addresses. More...
 
class  SocketTCP
 A class to connect to or listen on a TCP network. More...
 
class  SocketUDP
 A class to communicate on a UDP network. More...
 

Functions

void GetAdapters (FixedList< Adapter > *adapters)
 This method only returns basic information about the network interface. Specifically the local address, netmask and description. The broadcast address (IPv4 only) and network address can be derived from the address and netmask. See IPAddress::CalculateBroadcast and IPAddress::CalculateNetwork. The description is not meaningful aside from printing out to a user and differs from each operating system and network interface. More...
 
std::ostream & operator<< (std::ostream &stream, const CGUL::Network::IPAddress &ip)
 

Detailed Description

An experimental network namespace.

Function Documentation

void CGUL::Network::GetAdapters ( FixedList< Adapter > *  adapters)

This method only returns basic information about the network interface. Specifically the local address, netmask and description. The broadcast address (IPv4 only) and network address can be derived from the address and netmask. See IPAddress::CalculateBroadcast and IPAddress::CalculateNetwork. The description is not meaningful aside from printing out to a user and differs from each operating system and network interface.

Todo:
finish documenting GetAdapters and fixed windows version
std::ostream& CGUL::Network::operator<< ( std::ostream &  stream,
const CGUL::Network::IPAddress ip 
)
Parameters
streamThe output stream.
ipThe IP address to output.
Returns
A reference to the stream passed in.