src/Network/Address.cc
author terom
Mon, 08 Dec 2008 01:12:00 +0000
changeset 277 40f4a03917e2
parent 187 f41f894213ca
child 378 5589abf5e61b
permissions -rw-r--r--
fix NetworkClient handleInput
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     1
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     2
#include "Address.hh"
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     3
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     4
#include <sstream>
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     5
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     6
std::ostream& operator<< (std::ostream &s, const NetworkAddress &addr) {
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     7
    s << "[" << addr.get_address() << ":" << addr.get_port() << "]";
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     8
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     9
    return s;
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    10
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    11
}
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    12