public virtual int CalculatePacketSize(IPacket packet)
 {
     return((int)packet.GetDataStream().Length + HeaderSize);
 }