101 METHOD set_password (const String& password) -> void; |
101 METHOD set_password (const String& password) -> void; |
102 METHOD socket() -> UDPSocket*; |
102 METHOD socket() -> UDPSocket*; |
103 METHOD tick() -> void; |
103 METHOD tick() -> void; |
104 METHOD bump_last_ping() -> void; |
104 METHOD bump_last_ping() -> void; |
105 |
105 |
|
106 static METHOD all_sessions() -> const Vector<SharedPointer<RCONSession>>&; |
|
107 |
106 private: |
108 private: |
107 RCONSessionState m_state; |
109 RCONSessionState m_state; |
108 IPAddress m_address; |
110 IPAddress m_address; |
109 UDPSocket m_socket; |
111 UDPSocket m_socket; |
110 time_t m_lastPing; |
112 time_t m_lastPing; |
111 String m_password; |
113 String m_password; |
112 String m_salt; |
114 String m_salt; |
113 int m_serverProtocol; |
115 int m_serverProtocol; |
114 String m_hostname; |
116 String m_hostname; |
115 }; |
117 }; |
|
118 |
|
119 using RCONSessionPointer = SharedPointer<RCONSession>; |