protected void SendProto(ProtoGameClient.REQUEST_MSG msg, global::ProtoBuf.IExtensible proto) { try { if (IsConnected()) { Package package = new Package(); package.buffer = ProtoHelper.ToArray((short)msg, proto); package.size = (short)package.buffer.Length; Send(package); } } catch (Exception) { } }