diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-31 22:23:55 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-31 22:23:55 -0700 |
| commit | f13493edb2aae228ddbe70cc2f0609c541faf2d7 (patch) | |
| tree | cb1a6845ec82e2ea361ce15e88440a249992091c /node/TcpSocket.hpp | |
| parent | 595b386afcd4e4eca0cf379cd14689c1db8ee647 (diff) | |
| download | infinitytier-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.hpp | 6 |
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), |
