1sane-net(5) SANE Scanner Access Now Easy sane-net(5)
2
3
4
6 sane-net - SANE network backend
7
9 The sane-net library implements a SANE (Scanner Access Now Easy) back‐
10 end that provides access to image acquisition devices through a network
11 connection. This makes it possible to control devices attached to a
12 remote host and also provides a means to grant users access to pro‐
13 tected resources.
14
15
17 This backend expects device names of the form:
18
19 host:device
20
21 Where host is the name (or IP address) of the (remote-) host and device
22 is the name of the device on this host that should be addressed. If
23 the device name does not contain a colon (:), then the entire string is
24 treated as the device string for the default host. The default host is
25 the host listed last in the configuration file (see below).
26
27 An IPv6 address can be specified enclosed in square brackets:
28
29 [::1]:device
30
32 The contents of the net.conf file is a list of host names (or IP
33 addresses) that should be contacted for scan requests. Empty lines and
34 lines starting with a hash mark (#) are ignored. Note that IPv6
35 addresses in this file do not need to be enclosed in square brackets.
36 A sample configuration file is shown below:
37
38 scan-server.somedomain.firm
39 192.168.0.1
40 # this is a comment
41 localhost
42 ::1
43
44 The above list of hosts can be extended at run-time using environment
45 variable SANE_NET_HOSTS. This environment variable is a colon-sepa‐
46 rated list of hostnames or IP addresses that should be contacted in
47 addition to the hosts mentioned in the configuration file. For exam‐
48 ple, a user could set the environment variable to the string:
49
50 new.scanner.com:[::1]:192.168.0.2:scanner.univ.edu
51
52 To request that hosts new.scanner.com , [::1] , 192.168.0.2 and scan‐
53 ner.univ.edu are contacted in addition to the hosts listed above.
54
55 For this backend to function properly, it is also necessary to define
56 the sane-port service in /etc/services. The sane service should be
57 defined using a line of the following form:
58
59 sane-port 6566/tcp # SANE network scanner daemon
60
62 /etc/sane.d/net.conf
63 The backend configuration file (see also description of
64 SANE_CONFIG_DIR below).
65
66 /usr/lib*/sane/libsane-net.a
67 The static library implementing this backend.
68
69 /usr/lib*/sane/libsane-net.so
70 The shared library implementing this backend (present on systems
71 that support dynamic loading).
72
74 SANE_CONFIG_DIR
75 This environment variable specifies the list of directories that
76 may contain the configuration file. Under UNIX, the directories
77 are separated by a colon (`:'), under OS/2, they are separated
78 by a semi-colon (`;'). If this variable is not set, the config‐
79 uration file is searched in two default directories: first, the
80 current working directory (".") and then in /etc/sane.d. If the
81 value of the environment variable ends with the directory sepa‐
82 rator character, then the default directories are searched after
83 the explicitly specified directories. For example, setting
84 SANE_CONFIG_DIR to "/tmp/config:" would result in directories
85 "tmp/config", ".", and "/etc/sane.d" being searched (in this
86 order).
87
88 SANE_NET_HOSTS
89 A colon-separated list of host names or IP addresses to be con‐
90 tacted by this backend.
91
92 SANE_DEBUG_NET
93 If the library was compiled with debug support enabled, this
94 environment variable controls the debug level for this backend.
95 E.g., a value of 128 requests all debug output to be printed.
96 Smaller levels reduce verbosity.
97
99 If saned has timed out, the net backend may loop with authorization
100 requests.
101
103 sane(7), saned(8), sane-dll(5), scanimage(1)
104
105 http://www.penguin-breeder.org/?page=sane-net
106
108 David Mosberger and Andreas Beck
109
110
111
112sane-backends 1.0.18 8 Oct 2002 sane-net(5)