10 #ifndef CORAL_NET_IP_HPP 11 #define CORAL_NET_IP_HPP 14 # include <winsock2.h> 16 # include <netinet/in.h> 68 #endif // header guard std::vector< NetworkInterfaceInfo > GetNetworkInterfaces()
Returns information about available network interfaces.
in_addr netmask
Subnet mask.
Definition: ip.hpp:41
std::string IPAddressToString(in_addr address)
Converts an IP address to a string in dotted-decimal format.
Information about a network interface.
Definition: ip.hpp:32
std::string name
Interface name.
Definition: ip.hpp:35
in_addr address
IP address.
Definition: ip.hpp:38
Definition: variable_io.hpp:28
in_addr broadcastAddress
Broadcast address.
Definition: ip.hpp:44
in_addr StringToIPAddress(const std::string &address)
Converts an IP address in dotted-decimal string format to an in_addr.