public ReplyPacket ReceiveReply()
{
ReplyPacket response = null;
int count = 0;
do {
if (count == MaxWriteAttemps)
throw new ProtocolViolationException("[PRES] Can not receive correctly");
count++;
response = this.NextReply();
} while (response == null);
return response;
}