From: victor Date: Thu, 19 Nov 2009 09:17:06 +0000 (+0000) Subject: for handshake matching X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=b8019442a20ff304811fabff2fe253cb5f1ae6ef;p=swift-upb.git for handshake matching git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@591 e16421f0-f15b-0410-abcd-98678b794739 --- diff --git a/sendrecv.cpp b/sendrecv.cpp index 6cba0c2..c328c18 100644 --- a/sendrecv.cpp +++ b/sendrecv.cpp @@ -84,8 +84,9 @@ void Channel::AddHandshake (Datagram& dgram) { tintstr(),id,file().root_hash().hex().c_str()); } dgram.Push8(P2TP_HANDSHAKE); - dgram.Push32(EncodeID(id)); - dprintf("%s #%i +hs\n",tintstr(),id); + int encoded = EncodeID(id); + dgram.Push32(encoded); + dprintf("%s #%i +hs %i\n",tintstr(),id,encoded); ack_out_.clear(); AddAck(dgram); }