1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)ctl.h 5.1 (Berkeley) 6/6/85
7: */
8:
9: /*
10: * ctl.h describes the structure that
11: * talk and talkd pass back and forth.
12: */
13:
14: #include <sys/types.h>
15: #include <sys/socket.h>
16: #include <netinet/in.h>
17: #include <netdb.h>
18:
19: #define NAME_SIZE 9
20: #define TTY_SIZE 16
21: #define HOST_NAME_LENGTH 256
22:
23: #define MAX_LIFE 60 /* max time daemon saves invitations */
24: /* RING_WAIT should be 10's of seconds less than MAX_LIFE */
25: #define RING_WAIT 30 /* time to wait before refreshing invitation */
26:
27: /* type values */
28: #define LEAVE_INVITE 0
29: #define LOOK_UP 1
30: #define DELETE 2
31: #define ANNOUNCE 3
32:
33: /* answer values */
34: #define SUCCESS 0
35: #define NOT_HERE 1
36: #define FAILED 2
37: #define MACHINE_UNKNOWN 3
38: #define PERMISSION_DENIED 4
39: #define UNKNOWN_REQUEST 5
40:
41: typedef struct ctl_response {
42: char type;
43: char answer;
44: int id_num;
45: struct sockaddr_in addr;
46: } CTL_RESPONSE;
47:
48: typedef struct ctl_msg {
49: char type;
50: char l_name[NAME_SIZE];
51: char r_name[NAME_SIZE];
52: int id_num;
53: int pid;
54: char r_tty[TTY_SIZE];
55: struct sockaddr_in addr;
56: struct sockaddr_in ctl_addr;
57: } CTL_MSG;
Defined struct's
Defined typedef's
CTL_MSG
defined in line
57; used 35 times
- in /usr/src/old/talk/announce.c line
34,
69,
109
- in /usr/src/old/talk/ctl.c line
33
- in /usr/src/old/talk/ctl_transact.c line
23,
50-52(2)
- in /usr/src/old/talk/get_names.c line
16
- in /usr/src/old/talk/invite.c line
146-152(4)
- in /usr/src/old/talk/print.c line
17
- in /usr/src/old/talk/process.c line
24-31(4),
44,
53,
74-78(2),
94
- in /usr/src/old/talk/table.c line
35,
42-43(2),
50-52(2),
82,
89-91(2),
129-133(2)
- in /usr/src/old/talk/talk_ctl.h line
22
- in /usr/src/old/talk/talkd.c line
31,
100
Defined macros
Usage of this include