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