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.
This commit is contained in:
parent
595b386afc
commit
f13493edb2
11 changed files with 147 additions and 110 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue