88 class RCONSession |
88 class RCONSession |
89 { |
89 { |
90 public: |
90 public: |
91 ~RCONSession(); |
91 ~RCONSession(); |
92 |
92 |
|
93 METHOD address() const -> const IPAddress&; |
93 METHOD connect (IPAddress address) -> void; |
94 METHOD connect (IPAddress address) -> void; |
94 METHOD disconnect() -> void; |
95 METHOD disconnect() -> void; |
95 METHOD handle_packet (Bytestream& packet, const IPAddress& from) -> void; |
96 METHOD handle_packet (Bytestream& packet, const IPAddress& from) -> void; |
96 METHOD process_server_updates (Bytestream& packet) -> void; |
97 METHOD process_server_updates (Bytestream& packet) -> void; |
|
98 METHOD num_admins() const -> int; |
97 METHOD send (const Bytestream& packet) -> void; |
99 METHOD send (const Bytestream& packet) -> void; |
98 METHOD send_hello() -> void; |
100 METHOD send_hello() -> void; |
99 METHOD send_password() -> void; |
101 METHOD send_password() -> void; |
100 METHOD set_password (const String& password) -> void; |
102 METHOD set_password (const String& password) -> void; |
101 METHOD socket() -> UDPSocket*; |
103 METHOD socket() -> UDPSocket*; |
102 METHOD tick() -> void; |
104 METHOD tick() -> void; |
103 METHOD bump_last_ping() -> void; |
105 METHOD bump_last_ping() -> void; |
104 METHOD send_command (const String& message) -> bool; |
106 METHOD send_command (const String& message) -> bool; |
105 METHOD state() const -> RCONSessionState; |
107 METHOD state() const -> RCONSessionState; |
|
108 METHOD level() const -> const String&; |
106 |
109 |
107 static METHOD new_session() -> RCONSession*; |
110 static METHOD new_session() -> RCONSession*; |
108 static METHOD get_session() -> RCONSession*; |
111 static METHOD get_session() -> RCONSession*; |
109 |
112 |
110 private: |
113 private: |