summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2007-06-26 19:50:02 +0000
committerDavid Athay <ko2fan@gmail.com>2007-06-26 19:50:02 +0000
commit301ffe1048fb23548f72759b6ed0ca98e9109ff4 (patch)
treec765b6df9a83227b1d40bb59949b768fbc4c1574 /src/net
parent99263173738dfd6ca4ba822e0a112f1c7c17661c (diff)
downloadmanaserv-301ffe1048fb23548f72759b6ed0ca98e9109ff4.tar.gz
manaserv-301ffe1048fb23548f72759b6ed0ca98e9109ff4.tar.xz
manaserv-301ffe1048fb23548f72759b6ed0ca98e9109ff4.zip
Merged guilds-and-parties branch to trunk
Diffstat (limited to 'src/net')
-rw-r--r--src/net/netcomputer.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/netcomputer.cpp b/src/net/netcomputer.cpp
index 47d7ea1..345b408 100644
--- a/src/net/netcomputer.cpp
+++ b/src/net/netcomputer.cpp
@@ -92,10 +92,11 @@ operator <<(std::ostream &os, const NetComputer &comp)
<< ((comp.mPeer->address.host & 0xff000000) >> 24);
else
// big-endian
- os << ((comp.mPeer->address.host & 0xff000000) >> 24) << "."
- << ((comp.mPeer->address.host & 0x00ff0000) >> 16) << "."
- << ((comp.mPeer->address.host & 0x0000ff00) >> 8) << "."
- << ((comp.mPeer->address.host & 0x000000ff) >> 0);
+ // TODO: test this
+ os << ((comp.mPeer->address.host & 0xff000000) >> 24) << "."
+ << ((comp.mPeer->address.host & 0x00ff0000) >> 16) << "."
+ << ((comp.mPeer->address.host & 0x0000ff00) >> 8) << "."
+ << ((comp.mPeer->address.host & 0x000000ff));
return os;
}