1 #ifndef TCPIP_STACK_GROUP
2 #define TCPIP_STACK_GROUP
28 class internet_address;
30 class machine_uid_array;
98 bool add_local =
false)
const;
105 static bool initialize_tcpip();
110 static void deinitialize_tcpip();
123 "could not be made"),
127 "listening for connections"),
132 "unusable state currently"),
142 "too noisy to be used"),
144 "communication error")
Provides a dynamically resizable ASCII character string.
A very common template for a dynamic array of bytes.
Outcomes describe the state of completion for an operation.
Defines our communication related outcome values.
static const char * outcome_name(const basis::outcome &to_name)
this type of address describes a destination out on the internet.
Helpful functions for interacting with TCP/IP stacks.
static basis::astring tcpip_error_name(int error_value)
internet_address fill_and_resolve(const basis::astring &machine, int port, bool &worked) const
basis::byte_array full_resolve(const basis::astring &hostname, basis::astring &full_host) const
basis::astring hostname() const
machine_uid this_host(int location_type) const
bool resolve_any(const basis::astring &name, internet_address &resolved) const
DEFINE_CLASS_NAME("tcpip_stack")
basis::astring dns_resolve(const basis::astring &hostname) const
bool enumerate_adapters(structures::string_array &ip_addresses, bool add_local=false) const
static sockaddr convert(const internet_address &to_convert)
An array of strings with some additional helpful methods.
Provides access to the operating system's socket methods.