sources/network/rconsession.h

changeset 186
9330b93d9946
parent 183
9b6a0daedfc0
child 189
248d0b85cbda
equal deleted inserted replaced
185:e83ec58cc458 186:9330b93d9946
93 { 93 {
94 public: 94 public:
95 RCONSession(); 95 RCONSession();
96 ~RCONSession(); 96 ~RCONSession();
97 97
98 const IPAddress& address() const; 98 const net::ip_address& address() const;
99 void bumpLastPing(); 99 void bumpLastPing();
100 void connect(IPAddress address); 100 void connect(net::ip_address address);
101 void disconnect(); 101 void disconnect();
102 int getAdminCount() const; 102 int getAdminCount() const;
103 const std::string& getLevel() const; 103 const std::string& getLevel() const;
104 UDPSocket* getSocket(); 104 UDPSocket* getSocket();
105 RCONSessionState getState() const; 105 RCONSessionState getState() const;
115 void setPassword(const std::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 net::ip_address m_address;
121 UDPSocket m_socket; 121 UDPSocket m_socket;
122 time_t m_lastPing; 122 time_t m_lastPing;
123 std::string m_password; 123 std::string m_password;
124 std::string m_salt; 124 std::string m_salt;
125 int m_serverProtocol; 125 int m_serverProtocol;

mercurial