X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=octopi%2Flibrary%2Fsockets%2Ftcpip_stack.cpp;h=7c95dd40b8563068d454f69b8ede6eb96addd5a1;hb=b557bfd6995f4ad4899cf9065c8a7d5d44d30f03;hp=f45ea6aaf73557705066bb1abf47e76f55a2ecdb;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/octopi/library/sockets/tcpip_stack.cpp b/octopi/library/sockets/tcpip_stack.cpp index f45ea6aa..7c95dd40 100644 --- a/octopi/library/sockets/tcpip_stack.cpp +++ b/octopi/library/sockets/tcpip_stack.cpp @@ -35,10 +35,11 @@ using namespace basis; using namespace loggers; using namespace structures; +using namespace textual; namespace sockets { -//#define DEBUG_TCPIP_STACK +#define DEBUG_TCPIP_STACK // turn on for clamor. #undef LOG @@ -251,7 +252,7 @@ bool tcpip_stack::enumerate_adapters(machine_uid_array &ip_addresses, sockaddr tcpip_stack::convert(const internet_address &make_from) { -// FUNCDEF("convert [to sockaddr]"); + FUNCDEF("convert [to sockaddr]"); sockaddr_in new_socket; // our socket. memset(&new_socket, 0, sizeof(new_socket)); // clear it out. new_socket.sin_family = AF_INET; @@ -308,7 +309,7 @@ byte_array tcpip_stack::full_resolve(const astring &hostname, bool tcpip_stack::resolve_any(const astring &hostname, internet_address &to_return) const { -// FUNCDEF("resolve_any"); + FUNCDEF("resolve_any"); to_return = internet_address(); if (!hostname) return false; // blank hostnames go nowhere. astring full_host; @@ -324,7 +325,7 @@ bool tcpip_stack::resolve_any(const astring &hostname, astring tcpip_stack::dns_resolve(const astring &hostname) const { -// FUNCDEF("dns_resolve"); + FUNCDEF("dns_resolve"); if (!hostname) return ""; // blank hostnames go nowhere. if (hostname.iequals("local") || hostname.iequals("localhost")) { return "127.0.0.1";