|
|
1.1 root 1: /* rwhod.h 4.8 83/06/01 */
2:
3: /*
4: * rwho protocol packet format.
5: */
6: struct outmp {
7: char out_line[8]; /* tty name */
8: char out_name[8]; /* user id */
9: long out_time; /* time on */
10: };
11:
12: struct whod {
13: char wd_vers; /* protocol version # */
14: char wd_type; /* packet type, see below */
15: char wd_pad[2];
16: int wd_sendtime; /* time stamp by sender */
17: int wd_recvtime; /* time stamp applied by receiver */
18: char wd_hostname[32]; /* hosts's name */
19: int wd_loadav[3]; /* load average as in uptime */
20: int wd_boottime; /* time system booted */
21: struct whoent {
22: struct outmp we_utmp; /* active tty info */
23: int we_idle; /* tty idle time */
24: } wd_we[1024 / sizeof (struct whoent)];
25: };
26:
27: #define WHODVERSION 1
28: #define WHODTYPE_STATUS 1 /* host status */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.