Use abstract SocketListener class
Makes the code more general and not directly tied to specifically
TCP sockets.
diff --git a/common/network/Socket.h b/common/network/Socket.h
index 7a30cac..382b270 100644
--- a/common/network/Socket.h
+++ b/common/network/Socket.h
@@ -99,6 +99,8 @@
// if one is installed. Otherwise, returns 0.
virtual Socket* accept() = 0;
+ virtual int getMyPort() = 0;
+
// setFilter() applies the specified filter to all new connections
void setFilter(ConnectionFilter* f) {filter = f;}
int getFd() {return fd;}