sources/network/rconsession.h

changeset 27
089e37c0887e
parent 24
e651d02802c0
child 31
b5b5a6a96d91
--- a/sources/network/rconsession.h	Sun Dec 14 23:41:00 2014 +0200
+++ b/sources/network/rconsession.h	Mon Dec 15 01:41:06 2014 +0200
@@ -90,10 +90,12 @@
 public:
 	~RCONSession();
 
+	METHOD address() const -> const IPAddress&;
 	METHOD connect (IPAddress address) -> void;
 	METHOD disconnect() -> void;
 	METHOD handle_packet (Bytestream& packet, const IPAddress& from) -> void;
 	METHOD process_server_updates (Bytestream& packet) -> void;
+	METHOD num_admins() const -> int;
 	METHOD send (const Bytestream& packet) -> void;
 	METHOD send_hello() -> void;
 	METHOD send_password() -> void;
@@ -103,6 +105,7 @@
 	METHOD bump_last_ping() -> void;
 	METHOD send_command (const String& message) -> bool;
 	METHOD state() const -> RCONSessionState;
+	METHOD level() const -> const String&;
 
 	static METHOD new_session() -> RCONSession*;
 	static METHOD get_session() -> RCONSession*;
@@ -118,4 +121,6 @@
 	String m_salt;
 	int m_serverProtocol;
 	String m_hostname;
+	int m_numAdmins;
+	String m_level;
 };

mercurial