- struct emp_qelem queue;
- empth_t *proc;
- s_char hostaddr[32];
- s_char hostname[512];
- s_char client[128];
- s_char userid[32];
- int validated;
- natid cnum;
- int state;
- struct cmndstr *command;
- struct iop *iop;
- s_char combuf[1024];
- s_char *argp[128];
- s_char *condarg;
- time_t lasttime;
- int ncomstat;
- int minleft;
- int btused;
- int visitor;
- int god;
- int owner;
- int nstat;
- int waiting;
- int simulation; /* e.g. budget command */
- double dolcost;
- int broke;
- time_t curup; /* used in calc of minutes used */
- int aborted;
- int curid; /* for pr, cur. line's id, -1 none */
- int blitz_time;
- char *map; /* pointer to in-mem map */
- char *bmap; /* pointer to in-mem bmap */
+ struct emp_qelem queue;
+ empth_t *proc;
+ char hostaddr[46];
+ char client[128]; /* may be empty */
+ char userid[32]; /* may be empty */
+ int authenticated;
+ natid cnum;
+ int state;
+ int flags;
+ struct cmndstr *command; /* currently executing command */
+ struct iop *iop;
+ char combuf[1024]; /* command input buffer, UTF-8 */
+ char argbuf[1024]; /* argument buffer, ASCII */
+ char *argp[128]; /* arguments, ASCII, valid if command */
+ char *condarg; /* conditional, ASCII, valid if command */
+ char *comtail[128]; /* start of args in combuf[] */
+ time_t lasttime; /* when nat_timeused was last updated */
+ int btused;
+ int god;
+ int owner;
+ int nstat; /* command capabilities */
+ int simulation; /* e.g. budget command */
+ double dolcost;
+ time_t curup; /* when last input was received */
+ enum player_sleep may_sleep; /* when may thread sleep? */
+ int aborted; /* command aborted? */
+ int got_ctld; /* EOF cookie received? */
+ int recvfail; /* #recvclient() failures */
+ int curid; /* for pr, cur. line's ID, -1 none */
+ char *map; /* pointer to in-mem map */
+ char *bmap; /* pointer to in-mem bmap */