I forgot to commit PeerConnection.h

2008-01-10  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
	payload length(4bytes) are received. This happens because lenbufLength
	is not updated in this particular case and successive call of
	receiveMessage() overwrites payload length with bytes recieved which
	are payload body.
	* src/PeerConnection.{h, cc}
	* src/message.h
This commit is contained in:
Tatsuhiro Tsujikawa 2008-01-10 15:22:55 +00:00
parent 9a7fe58c57
commit 5b8358b4d5
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
is not updated in this particular case and successive call of
receiveMessage() overwrites payload length with bytes recieved which
are payload body.
* src/PeerConnection.cc
* src/PeerConnection.{h, cc}
* src/message.h
2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

View File

@ -54,7 +54,7 @@ private:
char resbuf[MAX_PAYLOAD_LEN];
int32_t resbufLength;
int32_t currentPayloadLength;
unsigned char lenbuf[4];
char lenbuf[4];
int32_t lenbufLength;
public: