]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/io/HostInfo_p.cpp
Added generic I/O device to BamIndex side of things
[bamtools.git] / src / api / internal / io / HostInfo_p.cpp
index 693b2f2f881c2f369bb9f99a0ae1ec9c8fff99de..1431fb8770b1054e7283050626b9a0658b2e740d 100644 (file)
@@ -9,8 +9,6 @@ using namespace BamTools::Internal;
 #  include "api/internal/io/NetUnix_p.h"
 #endif
 
-#include <iostream> // debug
-
 // standard C++ includes
 #include <cstdlib>
 #include <cstring>
@@ -141,8 +139,6 @@ HostInfo HostInfo::Lookup(const string& hostname, const string& port) {
     // do 'normal' lookup
     else {
 
-        cout << "HostInfo::Lookup() - looking up addresses for domain name: " << hostname << endl;
-
         // setup address lookup 'hints'
         addrinfo hints;
         memset(&hints, 0, sizeof(hints));
@@ -157,8 +153,6 @@ HostInfo HostInfo::Lookup(const string& hostname, const string& port) {
         // if everything OK
         if ( status == 0 ) {
 
-            cout << "HostInfo::Lookup() - found addresses" << endl;
-
             // iterate over all IP addresses found
             addrinfo* p = res;
             for ( ; p != NULL; p = p->ai_next ) {
@@ -167,7 +161,6 @@ HostInfo HostInfo::Lookup(const string& hostname, const string& port) {
                 if ( p->ai_family == AF_INET ) {
                     sockaddr_in* ipv4 = (sockaddr_in*)p->ai_addr;
                     HostAddress a( ntohl(ipv4->sin_addr.s_addr) );
-                    cout << "\t" << a.GetIPString() << endl;
                     uniqueAddresses.insert(a);
                 }
 
@@ -175,7 +168,6 @@ HostInfo HostInfo::Lookup(const string& hostname, const string& port) {
                 else if ( p->ai_family == AF_INET6 ) {
                     sockaddr_in6* ipv6 = (sockaddr_in6*)p->ai_addr;
                     HostAddress a(ipv6->sin6_addr.s6_addr);
-                    cout << "\t" << a.GetIPString() << endl;
                     uniqueAddresses.insert(a);
                 }
             }