1 #ifndef _CLNT_STREAM_H_INCLUDED_
2 #define _CLNT_STREAM_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /*	clnt_stream 3h
7 /* SUMMARY
8 /*	client socket maintenance
9 /* SYNOPSIS
10 /*	#include <clnt_stream.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15   * Utility library.
16   */
17 #include <vstream.h>
18 
19  /*
20   * External interface.
21   */
22 typedef struct CLNT_STREAM CLNT_STREAM;
23 typedef int (*CLNT_STREAM_HANDSHAKE_FN)(VSTREAM *);
24 
25 extern CLNT_STREAM *clnt_stream_create(const char *, const char *, int, int,
26 				               CLNT_STREAM_HANDSHAKE_FN);
27 extern VSTREAM *clnt_stream_access(CLNT_STREAM *);
28 extern const char *clnt_stream_path(CLNT_STREAM *);
29 extern void clnt_stream_recover(CLNT_STREAM *);
30 extern void clnt_stream_free(CLNT_STREAM *);
31 
32 /* LICENSE
33 /* .ad
34 /* .fi
35 /*	The Secure Mailer license must be distributed with this software.
36 /* AUTHOR(S)
37 /*	Wietse Venema
38 /*	IBM T.J. Watson Research
39 /*	P.O. Box 704
40 /*	Yorktown Heights, NY 10598, USA
41 /*
42 /*	Wietse Venema
43 /*	Google, Inc.
44 /*	111 8th Avenue
45 /*	New York, NY 10011, USA
46 /*--*/
47 
48 #endif
49