public void Send(RealmPacketOut packet, bool addEndOfPacket = false) { packet.FinalizeAsda(addEndOfPacket, Locale); try { Send(packet.BufferSegment, packet.TotalLength); } catch (SocketException ex) { Disconnect(false); } }