sources/network/rconsession.h

changeset 92
39947c46ed17
parent 88
08ccaf26cffd
child 106
7b156b764d11
child 109
e4966d7e615d
equal deleted inserted replaced
91:ac02cf1c3576 92:39947c46ed17
90 // ------------------------------------------------------------------------------------------------- 90 // -------------------------------------------------------------------------------------------------
91 // 91 //
92 class RCONSession 92 class RCONSession
93 { 93 {
94 public: 94 public:
95 RCONSession (class Interface* iface); 95 RCONSession();
96 ~RCONSession(); 96 ~RCONSession();
97 97
98 const IPAddress& address() const; 98 const IPAddress& address() const;
99 void connect (IPAddress address); 99 void connect (IPAddress address);
100 void disconnect(); 100 void disconnect();
111 bool send_command (const String& message); 111 bool send_command (const String& message);
112 RCONSessionState state() const; 112 RCONSessionState state() const;
113 const String& level() const; 113 const String& level() const;
114 bool is_active() const; 114 bool is_active() const;
115 void request_tab_complete (const String& part); 115 void request_tab_complete (const String& part);
116 void set_interface (class Interface* iface);
116 117
117 private: 118 private:
118 RCONSession();
119
120 RCONSessionState m_state; 119 RCONSessionState m_state;
121 IPAddress m_address; 120 IPAddress m_address;
122 UDPSocket m_socket; 121 UDPSocket m_socket;
123 time_t m_lastPing; 122 time_t m_lastPing;
124 String m_password; 123 String m_password;

mercurial