170:40d8d7231a36 | 171:d0fba0d7ad03 |
---|---|
30 | 30 |
31 #pragma once | 31 #pragma once |
32 #include "ipaddress.h" | 32 #include "ipaddress.h" |
33 #include "udpsocket.h" | 33 #include "udpsocket.h" |
34 #include "bytestream.h" | 34 #include "bytestream.h" |
35 #include "packetqueue.h" | |
36 BEGIN_ZFC_NAMESPACE | 35 BEGIN_ZFC_NAMESPACE |
37 | 36 |
38 // ------------------------------------------------------------------------------------------------- | 37 // ------------------------------------------------------------------------------------------------- |
39 // | 38 // |
40 enum | 39 enum |
71 CLRC_COMMAND, | 70 CLRC_COMMAND, |
72 CLRC_PONG, | 71 CLRC_PONG, |
73 CLRC_DISCONNECT, | 72 CLRC_DISCONNECT, |
74 CLRC_TABCOMPLETE, | 73 CLRC_TABCOMPLETE, |
75 CLRC_WATCHCVAR, | 74 CLRC_WATCHCVAR, |
76 CLRC_MISSINGPACKET, | |
77 }; | 75 }; |
78 | 76 |
79 // ------------------------------------------------------------------------------------------------- | 77 // ------------------------------------------------------------------------------------------------- |
80 // | 78 // |
81 enum RCONUpdateType | 79 enum RCONUpdateType |
127 | 125 |
128 private: | 126 private: |
129 RCONSessionState m_state; | 127 RCONSessionState m_state; |
130 IPAddress m_address; | 128 IPAddress m_address; |
131 UDPSocket m_socket; | 129 UDPSocket m_socket; |
132 PacketQueue m_packetQueue; | |
133 time_t m_lastPing; | 130 time_t m_lastPing; |
134 String m_password; | 131 String m_password; |
135 String m_salt; | 132 String m_salt; |
136 int m_serverProtocol; | 133 int m_serverProtocol; |
137 String m_hostname; | 134 String m_hostname; |
138 int m_adminCount; | 135 int m_adminCount; |
139 String m_level; | 136 String m_level; |
140 String m_lastTabComplete; | 137 String m_lastTabComplete; |
141 time_t m_lastMissingPacketRequest; | |
142 class Interface* m_interface; | 138 class Interface* m_interface; |
143 }; | 139 }; |
144 | 140 |
145 END_ZFC_NAMESPACE | 141 END_ZFC_NAMESPACE |