98 const IPAddress& address() const; |
98 const IPAddress& address() const; |
99 void bumpLastPing(); |
99 void bumpLastPing(); |
100 void connect(IPAddress address); |
100 void connect(IPAddress address); |
101 void disconnect(); |
101 void disconnect(); |
102 int getAdminCount() const; |
102 int getAdminCount() const; |
103 const String& getLevel() const; |
103 const std::string& getLevel() const; |
104 UDPSocket* getSocket(); |
104 UDPSocket* getSocket(); |
105 RCONSessionState getState() const; |
105 RCONSessionState getState() const; |
106 void handlePacket(ByteArray& message); |
106 void handlePacket(ByteArray& message); |
107 bool isActive() const; |
107 bool isActive() const; |
108 void processServerUpdates(Bytestream& packet); |
108 void processServerUpdates(Bytestream& packet); |
109 void requestTabCompletion(const String& part); |
109 void requestTabCompletion(const std::string& part); |
110 void send(const ByteArray& packet); |
110 void send(const ByteArray& packet); |
111 bool sendCommand(const String& commandString); |
111 bool sendCommand(const std::string& commandString); |
112 void sendHello(); |
112 void sendHello(); |
113 void sendPassword(); |
113 void sendPassword(); |
114 void setInterface(class Interface* interface); |
114 void setInterface(class Interface* interface); |
115 void setPassword(const String& password); |
115 void setPassword(const std::string& password); |
116 void tick(); |
116 void tick(); |
117 |
117 |
118 private: |
118 private: |
119 RCONSessionState m_state; |
119 RCONSessionState m_state; |
120 IPAddress m_address; |
120 IPAddress m_address; |
121 UDPSocket m_socket; |
121 UDPSocket m_socket; |
122 time_t m_lastPing; |
122 time_t m_lastPing; |
123 String m_password; |
123 std::string m_password; |
124 String m_salt; |
124 std::string m_salt; |
125 int m_serverProtocol; |
125 int m_serverProtocol; |
126 String m_hostname; |
126 std::string m_hostname; |
127 int m_adminCount; |
127 int m_adminCount; |
128 String m_level; |
128 std::string m_level; |
129 String m_lastTabComplete; |
129 std::string m_lastTabComplete; |
130 class Interface* m_interface; |
130 class Interface* m_interface; |
131 }; |
131 }; |
132 |
132 |
133 END_ZFC_NAMESPACE |
133 END_ZFC_NAMESPACE |