1 .TH TLSPOOL_SOCKET 3 "November 2015" "ARPA2.net" "Library Calls"
3 tlspool_socket \- Setup the TLS Pool to use with a given socket path.
5 .B #include <tlspool/commands.h>
7 .B #include <tlspool/starttls.h>
9 .B int tlspool_socket (char *\fIpath\fB);
13 returns a file descriptor for the TLS Pool. During the first call, the
15 argument is used as a path to the UNIX domain socket to use; during later
16 calls, the argument is ignored but the returned file descriptor is instead
17 the same one as before. A NULL value for the argument is replaced with
19 .BR socket_name configuration
21 .IR tlspool_configvar()
22 or, if that fails, the statically compiled value in
23 .BR TLSPOOL_DEFAULT_SOCKET_PATH .
27 functions that do not have a socket path argument
28 call this function internally, to setup a shared access point
29 to the TLS Pool. In addition, a "master thread" is created to retrieve
30 and redistribute return values. This mechanism facilitates multiple
31 simultaneous commands being sent to the TLS Pool by independent threads.
33 The function returns a file descriptor >= 0 on success.
34 If an error occurs, the function returns -1 and
41 Written by Rick van Rein of OpenFortress.nl, for the ARPA2.net project.
44 For any discussion, including about bugs, please use the mailing list
46 .IR http://lists.arpa2.org/mailman/listinfo/tls-pool .
48 Please read the software distribution's
49 .IR README ", " INSTALL " and " TODO " files"
50 for information about the
52 implementation status.
55 Copyright \(co 2015 Rick van Rein, ARPA2.net.
57 ARPA2 is funded from InternetWide.org, which in turns receives donations
58 from various funding sources with an interest in a private and secure
59 Internet that gives users control over their online presence. This particular
60 project has been sponsored in part by NCSC.
63 .IR tlspool_configvar "(3)"
65 The configuration file option
67 influences the path at which the TLS Pool is available; this is not
68 read by the client library, and when it differs from the default path in
69 .BR TLSPOOL_DEFAULT_SOCKET_PATH ,
70 this function is used to inform the client library once, before calling
71 any of the other client functions.
73 The TLS Pool API is documented in the include file
74 .IR <tlspool/commands.h> " and " <tlspool/starttls.h>
79 Online resources may be found on the project home page,
80 .IR http://tlspool.arpa2.net .