feisty meow concerns codebase  2.140
sockets::tcpip_stack Class Reference

Helpful functions for interacting with TCP/IP stacks. More...

#include <tcpip_stack.h>

Inheritance diagram for sockets::tcpip_stack:
Collaboration diagram for sockets::tcpip_stack:

Public Member Functions

 tcpip_stack ()
 
virtual ~tcpip_stack ()
 
bool healthy () const
 
 DEFINE_CLASS_NAME ("tcpip_stack")
 
basis::astring hostname () const
 
machine_uid this_host (int location_type) const
 
basis::byte_array full_resolve (const basis::astring &hostname, basis::astring &full_host) const
 
bool resolve_any (const basis::astring &name, internet_address &resolved) const
 
basis::astring dns_resolve (const basis::astring &hostname) const
 
bool enumerate_adapters (structures::string_array &ip_addresses, bool add_local=false) const
 
internet_address fill_and_resolve (const basis::astring &machine, int port, bool &worked) const
 
bool enumerate_adapters (machine_uid_array &ip_addresses, bool add_local=false) const
 

Static Public Member Functions

static basis::astring tcpip_error_name (int error_value)
 
static sockaddr convert (const internet_address &to_convert)
 
static internet_address convert (const sockaddr &to_convert)
 

Detailed Description

Helpful functions for interacting with TCP/IP stacks.

This class hides details of the platform specifics of the stack.

Definition at line 37 of file tcpip_stack.h.

Constructor & Destructor Documentation

◆ tcpip_stack()

sockets::tcpip_stack::tcpip_stack ( )

Definition at line 80 of file tcpip_stack.cpp.

◆ ~tcpip_stack()

sockets::tcpip_stack::~tcpip_stack ( )
virtual

Definition at line 84 of file tcpip_stack.cpp.

Member Function Documentation

◆ convert() [1/2]

sockaddr sockets::tcpip_stack::convert ( const internet_address to_convert)
static

◆ convert() [2/2]

internet_address sockets::tcpip_stack::convert ( const sockaddr &  to_convert)
static

◆ DEFINE_CLASS_NAME()

sockets::tcpip_stack::DEFINE_CLASS_NAME ( "tcpip_stack"  )

◆ dns_resolve()

astring sockets::tcpip_stack::dns_resolve ( const basis::astring hostname) const

◆ enumerate_adapters() [1/2]

◆ enumerate_adapters() [2/2]

bool sockets::tcpip_stack::enumerate_adapters ( structures::string_array ip_addresses,
bool  add_local = false 
) const

◆ fill_and_resolve()

◆ full_resolve()

◆ healthy()

bool sockets::tcpip_stack::healthy ( ) const
inline

Definition at line 43 of file tcpip_stack.h.

◆ hostname()

astring sockets::tcpip_stack::hostname ( ) const

◆ resolve_any()

◆ tcpip_error_name()

◆ this_host()

machine_uid sockets::tcpip_stack::this_host ( int  location_type) const

The documentation for this class was generated from the following files: