1 /* talk.h Copyright Michael Temari 07/22/1996 All Rights Reserved */
20 struct osockaddr addr
;
21 struct osockaddr ctl_addr
;
23 char luser
[USER_SIZE
];
24 char ruser
[USER_SIZE
];
34 struct osockaddr addr
;
37 #define TALK_VERSION 1
39 /* message type values */
40 #define LEAVE_INVITE 0 /* leave invitation with server */
41 #define LOOK_UP 1 /* check for invitation by callee */
42 #define DELETE 2 /* delete invitation by caller */
43 #define ANNOUNCE 3 /* announce invitation by caller */
46 #define SUCCESS 0 /* operation completed properly */
47 #define NOT_HERE 1 /* callee not logged in */
48 #define FAILED 2 /* operation failed for unexplained reason */
49 #define MACHINE_UNKNOWN 3 /* caller's machine name unknown */
50 #define PERMISSION_DENIED 4 /* callee's tty doesn't permit announce */
51 #define UNKNOWN_REQUEST 5 /* request has invalid type value */
52 #define BADVERSION 6 /* request has invalid protocol version */
53 #define BADADDR 7 /* request has invalid addr value */
54 #define BADCTLADDR 8 /* request has invalid ctl_addr value */
56 #define MAX_LIFE 60 /* max time daemon saves invitations */
57 #define RING_WAIT 30 /* time to wait before resending invitation */