audit 5.1.2

This commit is contained in:
Jim Norman 2007-05-08 18:19:13 +00:00
parent e597b7ab23
commit 9811014d20

View File

@ -133,23 +133,17 @@ namespace Novell.CASA.MiCasa.Communication
bytesRecvd = mSocket.Receive(buf); bytesRecvd = mSocket.Receive(buf);
ms.Write(buf, 0, bytesRecvd); ms.Write(buf, 0, bytesRecvd);
totalBytes = totalBytes + bytesAvailable; totalBytes = totalBytes + bytesAvailable; // did we wrap
if (totalBytes < 0)
{
return null;
}
} }
if (totalBytes == 0) if (totalBytes == 0)
return null; return null;
return ms.ToArray(); return ms.ToArray();
/*
byte[] finalbuf = ms.ToArray();
int returnBufferLen = msgIdBytes.Length + msgLenBytes.Length + totalBytes;
returnBuffer = new byte[returnBufferLen];
Array.Copy(msgIdBytes, returnBuffer, 2);
Array.Copy(msgLenBytes, 0, returnBuffer, 2, 4);
Array.Copy(finalbuf, 0, returnBuffer, 6, finalbuf.Length);
return returnBuffer;
*
*/
} }
else else
{ {