4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
27 * Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
28 * All Rights Reserved.
32 * University Copyright- Copyright (c) 1982, 1986, 1988
33 * The Regents of the University of California.
34 * All Rights Reserved.
36 * University Acknowledgment- Portions of this document are derived from
37 * software developed by the University of California, Berkeley, and its
44 #pragma ident "%Z%%M% %I% %E% SMI"
47 * ctl.h describes the structure that talk and talkd pass back
55 #include <sys/types.h>
56 #include <sys/socket.h>
57 #include <netinet/in.h>
62 #define HOST_NAME_LENGTH 256
65 * Maximum time an invitation is saved by the talk daemons.
69 * Time to wait before refreshing invitation should be 10's of seconds less
75 * The values for type.
77 #define LEAVE_INVITE 0
83 * The values for answer.
88 #define MACHINE_UNKNOWN 3
89 #define PERMISSION_DENIED 4
90 #define UNKNOWN_REQUEST 5
92 typedef struct ctl_response CTL_RESPONSE
;
98 struct sockaddr_in addr
;
101 typedef struct ctl_msg CTL_MSG
;
105 char l_name
[NAME_SIZE
];
106 char r_name
[NAME_SIZE
];
109 char r_tty
[TTY_SIZE
];
110 struct sockaddr_in addr
;
111 struct sockaddr_in ctl_addr
;