Example #1
0
 public RconPacket(RconConnection m_conn, RconPacketType m_type, int m_request_id, string m_string1, string m_string2)
 {
     conn = m_conn;
     type = m_type;
     request_id = m_request_id;
     string1 = m_string1;
     string2 = m_string2;
 }
Example #2
0
 public RconPacket(RconConnection m_conn)
 {
     conn = m_conn;
     int size = ReadInt();
     if (size > 4096) size = 4096;
     byte[] thispacket = ReadBytes(size);
     request_id = ReadInt(thispacket);
     size = ReadInt(thispacket);
     type = (RconPacketType)size;
     if (size != 2 && size != 3)
     {
         string1 = "";
         string2 = "";
     }
     else
     {
         string1 = ReadString(thispacket);
         string2 = ReadString(thispacket);
     }
 }
Example #3
0
 public PlayerRcon(string m_ip, RconConnection m_conn)
 {
     conn = m_conn;
     name = "Console";
     ip = m_ip;
 }