1sane-net(5)              SANE Scanner Access Now Easy              sane-net(5)
2
3
4

NAME

6       sane-net - SANE network backend
7

DESCRIPTION

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

DEVICE NAMES

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

CONFIGURATION

32       The  net.conf  file  contains  both  backend options and a list of host
33       names (or IP addresses) that should be  contacted  for  scan  requests.
34       Anything  that isn't one of the options listed below will be treated as
35       an host name.
36
37       connect_timeout = nsecs
38              Timeout (in seconds) for the initial connection to the  saned(8)
39              server.  This will prevent the backend from blocking for several
40              minutes trying to connect to an unresponsive saned(8) host (net‐
41              work   outage,   host   down,  ...).  The  environment  variable
42              SANE_NET_TIMEOUT can also be used to specify the timeout at run‐
43              time.
44
45       Empty  lines and lines starting with a hash mark (#) are ignored.  Note
46       that IPv6 addresses in this file do not need to be enclosed  in  square
47       brackets.  A sample configuration file is shown below:
48
49              scan-server.somedomain.firm
50              192.168.0.1
51              # this is a comment
52              localhost
53              ::1
54
55       The  above  list of hosts can be extended at run-time using environment
56       variable SANE_NET_HOSTS.  This environment variable  is  a  colon-sepa‐
57       rated list of hostnames or IP addresses that should be contacted in ad‐
58       dition to the hosts mentioned in the configuration file.  For  example,
59       a user could set the environment variable to the string:
60
61              new.scanner.com:[::1]:192.168.0.2:scanner.univ.edu
62
63       To  request  that hosts new.scanner.com , [::1] , 192.168.0.2 and scan‐
64       ner.univ.edu are contacted in addition to the hosts listed above.
65
66       For this backend to function properly, it is also necessary  to  define
67       the sane-port service in /etc/services.  The sane service should be de‐
68       fined using a line of the following form:
69
70              sane-port 6566/tcp # SANE network scanner daemon
71

FILES

73       /etc/sane.d/net.conf
74              The  backend  configuration  file  (see  also   description   of
75              SANE_CONFIG_DIR below).
76
77       /usr/lib64/sane/libsane-net.a
78              The static library implementing this backend.
79
80       /usr/lib64/sane/libsane-net.so
81              The shared library implementing this backend (present on systems
82              that support dynamic loading).
83

ENVIRONMENT

85       SANE_CONFIG_DIR
86              This environment variable specifies the list of directories that
87              may contain the configuration file.  On *NIX systems, the direc‐
88              tories are separated by a colon (`:'), under OS/2, they are sep‐
89              arated  by a semi-colon (`;').  If this variable is not set, the
90              configuration file  is  searched  in  two  default  directories:
91              first,   the   current  working  directory  (".")  and  then  in
92              /etc/sane.d.  If the value of the environment variable ends with
93              the  directory separator character, then the default directories
94              are searched after the explicitly  specified  directories.   For
95              example,  setting SANE_CONFIG_DIR to "/tmp/config:" would result
96              in directories tmp/config, ., and /etc/sane.d being searched (in
97              this order).
98
99       SANE_NET_HOSTS
100              A  colon-separated list of host names or IP addresses to be con‐
101              tacted by this backend.
102
103       SANE_NET_TIMEOUT
104              Number of seconds to wait  for  a  response  from  the  saned(8)
105              server for the initial connection request.
106
107       SANE_DEBUG_NET
108              If the library was compiled with debug support enabled, this en‐
109              vironment variable controls the debug level  for  this  backend.
110              E.g.,  a  value  of 128 requests all debug output to be printed.
111              Smaller levels reduce verbosity.
112

BUGS

114       If saned(8) has timed out, the net backend may loop with  authorization
115       requests.
116
117

SEE ALSO

119       sane(7), saned(8), sane-dll(5), scanimage(1)
120
121       http://www.penguin-breeder.org/?page=sane-net
122

AUTHOR

124       David Mosberger and Andreas Beck
125
126
127
128                                  14 Jul 2008                      sane-net(5)
Impressum