protected internal virtual byte[] read2BytePackage()
{
byte[] lbuf = new byte[2];
byte[] tmpbuf;
readSock(socket, lbuf, (int)lbuf.Length, false);
OtpInputStream ibuf = new OtpInputStream(lbuf);
int len = ibuf.read2BE();
tmpbuf = new byte[len];
readSock(socket, tmpbuf, len, true);
return tmpbuf;
}