16 #include "UiSetPair.h"
35 enum sessionState { NUL_STATE, IDLE, PENDING, SUSPENDED, CONNECTED };
36 enum privileges { NUL_PRIV, LIMITED, STANDARD, ADMIN, ROOT };
42 bool validClient(
int)
const;
51 bool isLocked(
int)
const;
67 int getNumClients()
const;
68 int getMaxClients()
const;
69 int getMaxClx()
const;
74 sessionState getState(
int)
const;
79 int addClient(
string&,
string&, privileges,
int=0);
89 void setClientIndex(
int,
int);
100 string&
toString(
string&,
bool=
false);
103 void write(ostream&,
bool=
false);
164 inline bool ClientTable::validClient(
int clx)
const {
168 inline int ClientTable::getNumClients()
const {
172 inline int ClientTable::getMaxClients()
const {
return maxCli; }
173 inline int ClientTable::getMaxClx()
const {
return maxClx; }
189 inline bool ClientTable::isLocked(
int clx)
const {
414 svec[sess].state = state;
429 return (uint64_t(cliAdr) << 32) | cliAdr;