summaryrefslogtreecommitdiff
path: root/node/TcpSocket.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-31 22:23:55 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-31 22:23:55 -0700
commitf13493edb2aae228ddbe70cc2f0609c541faf2d7 (patch)
treecb1a6845ec82e2ea361ce15e88440a249992091c /node/TcpSocket.hpp
parent595b386afcd4e4eca0cf379cd14689c1db8ee647 (diff)
downloadinfinitytier-f13493edb2aae228ddbe70cc2f0609c541faf2d7.tar.gz
infinitytier-f13493edb2aae228ddbe70cc2f0609c541faf2d7.zip
Oops... turns out we need to differentiate incoming from outgoing TCP and indeed learn incoming TCP paths. Otherwise the recipient of a TCP connection does not know to reply via TCP! Heh.
Diffstat (limited to 'node/TcpSocket.hpp')
-rw-r--r--node/TcpSocket.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/TcpSocket.hpp b/node/TcpSocket.hpp
index ea2b0ddf..8a9a7095 100644
--- a/node/TcpSocket.hpp
+++ b/node/TcpSocket.hpp
@@ -71,11 +71,11 @@ public:
protected:
#ifdef __WINDOWS__
- TcpSocket(SocketManager *sm,SOCKET s,bool c,const InetAddress &r) :
+ TcpSocket(SocketManager *sm,SOCKET s,Socket::Type t,bool c,const InetAddress &r) :
#else
- TcpSocket(SocketManager *sm,int s,bool c,const InetAddress &r) :
+ TcpSocket(SocketManager *sm,int s,Socket::Type t,bool c,const InetAddress &r) :
#endif
- Socket(Socket::ZT_SOCKET_TYPE_TCP,s),
+ Socket(t,s),
_lastActivity(Utils::now()),
_sm(sm),
_outbuf((unsigned char *)0),