xref: /original-bsd/contrib/connectd/cd/main.h (revision 0999a820)
1 /*-
2  * Copyright (c) 1993 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  * %sccs.include.redist.c%
9  *
10  *	@(#)main.h	5.2 (Berkeley) 05/29/93
11  */
12 
13 #include <sys/types.h>
14 #include <sys/socket.h>
15 #include <sys/un.h>
16 #include <sys/uio.h>
17 #include <sys/file.h>
18 #include <stdio.h>
19 #include <connect.h>
20 
21 struct conversation {
22 	struct connectdomain co_cd;	/* where we are connecting to */
23 	char	co_methods[100];	/* how we go about making connection */
24 	char	co_optionsbuf[1024] ;	/* options requestor wants */
25 	int	co_constatus ;		/* current connection status */
26 	int	co_errfd ;		/* requestor's stderr if set */
27 	int	co_sock ;		/* requestor's socket if set */
28 	int	co_rqst ;		/* requestor's request if set */
29 	int	co_pid ;		/* connector pid if active */
30 };
31