sources/network/rconsession.h

changeset 189
248d0b85cbda
parent 186
9330b93d9946
child 190
90bf9049e5eb
equal deleted inserted replaced
188:5fc32e4b2a8c 189:248d0b85cbda
99 void bumpLastPing(); 99 void bumpLastPing();
100 void connect(net::ip_address 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 net::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 std::string& part); 109 void requestTabCompletion(const std::string& part);
110 void send(const ByteArray& packet); 110 bool send(const ByteArray& packet);
111 bool sendCommand(const std::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 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 net::ip_address m_address; 120 net::ip_address m_address;
121 UDPSocket m_socket; 121 net::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;
126 std::string m_hostname; 126 std::string m_hostname;

mercurial