xref: /original-bsd/contrib/connectd/cd/main.h (revision 3b6250d9)
1 /*
2  * Copyright (c) 1989 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Bill Jolitz.
7  *
8  * Redistribution and use in source and binary forms are permitted
9  * provided that the above copyright notice and this paragraph are
10  * duplicated in all such forms and that any documentation,
11  * advertising materials, and other materials related to such
12  * distribution and use acknowledge that the software was developed
13  * by the University of California, Berkeley.  The name of the
14  * University may not be used to endorse or promote products derived
15  * from this software without specific prior written permission.
16  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19  *
20  *	@(#)main.h	5.1 (Berkeley) 05/16/89
21  */
22 
23 #include <sys/types.h>
24 #include <sys/socket.h>
25 #include <sys/un.h>
26 #include <sys/uio.h>
27 #include <sys/file.h>
28 #include <stdio.h>
29 #include <connect.h>
30 
31 struct conversation {
32 	struct connectdomain co_cd;	/* where we are connecting to */
33 	char	co_methods[100];	/* how we go about making connection */
34 	char	co_optionsbuf[1024] ;	/* options requestor wants */
35 	int	co_constatus ;		/* current connection status */
36 	int	co_errfd ;		/* requestor's stderr if set */
37 	int	co_sock ;		/* requestor's socket if set */
38 	int	co_rqst ;		/* requestor's request if set */
39 	int	co_pid ;		/* connector pid if active */
40 };
41