summaryrefslogtreecommitdiff
path: root/src/netcomputer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/netcomputer.h')
-rw-r--r--src/netcomputer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/netcomputer.h b/src/netcomputer.h
index 842d362b..5622e03c 100644
--- a/src/netcomputer.h
+++ b/src/netcomputer.h
@@ -26,6 +26,8 @@
#include <enet/enet.h>
+#include <iostream>
+
class MessageOut;
/**
@@ -83,6 +85,14 @@ class NetComputer
private:
ENetPeer *mPeer; /**< Client peer */
+
+ /**
+ * Converts the ip-address of the peer to a stringstream.
+ * Example:
+ * <code> std::cout << comp </code>
+ */
+ friend std::ostream& operator <<(std::ostream &os,
+ const NetComputer &comp);
};
#endif // _TMWSERV_NETCOMPUTER_H_