blob: e0d3a5587704b5b6fad5fd97752faf8847cbf4a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en" />
<title>s6-networking: the s6net library interface</title>
<meta name="Description" content="s6-networking: the s6net library interface" />
<meta name="Keywords" content="s6-networking net s6net library libs6net" />
<!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
</head>
<body>
<p>
<a href="../">s6-networking</a><br />
<a href="//skarnet.org/software/">Software</a><br />
<a href="//skarnet.org/">skarnet.org</a>
</p>
<h1> The <tt>s6net</tt> library interface </h1>
<h2> General information </h2>
<p>
<tt>libs6net</tt> is a collection of networking-related utility
C interfaces, used in the s6-networking executables.
</p>
<h2> Compiling </h2>
<ul>
<li> Make sure the s6-networking headers, as well as the skalibs headers,
are visible in your header search path. </li>
<li> Use <tt>#include <s6-networking/s6net.h></tt> </li>
</ul>
<h2> Linking </h2>
<ul>
<li> Make sure the s6-networking libraries, as well as the skalibs
libraries, are visible in your library search path. </li>
<li> Link against <tt>-ls6net</tt>, <tt>-lskarnet</tt>,
<tt>`cat $sysdeps/socket.lib`</tt> and
<tt>`cat $sysdeps/tainnow.lib`</tt>, <tt>$sysdeps</tt> being your skalibs
sysdeps directory. </li>
</ul>
<h2> Programming </h2>
<p>
The <tt>s6-networking/s6net.h</tt> header is actually a
concatenation of other headers:
the libs6net is separated into several modules, each of them with its
own header.
</p>
<ul>
<li> The <a href="ident.html">s6-networking/ident.h</a> header provides
a small IDENT client (RFC 1413). </li>
</ul>
</body>
</html>
|