Пример #1
0
 public Rejection(string reason, RejectionType type = RejectionType.Permanent)
 {
     Reason = reason;
     Type   = type;
 }
Пример #2
0
 public Rejection(string reason, RejectionType type = RejectionType.Permanent)
 {
     Reason = reason;
     Type = type;
 }
Пример #3
0
 /// <summary>
 /// Packet Type: 1055. This packet is sent as a response to the previous authentication packet sent to request
 /// access to a server. The packet is sent to reject a client or authorize a client. If the client is being
 /// rejected, the rejection error identity will be sent in the packet. If the client is being authenticated,
 /// the message server's connection information will be sent in the packet.
 /// </summary>
 /// <param name="type">The rejection message being sent to the client.</param>
 public MsgConnectEx(RejectionType type)
     : base(32)
 {
     WriteHeader(32, PacketType.MSG_CONNECT_EX);
     Authentication = (uint)type;
 }