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
58       addition to the hosts mentioned in the configuration file.   For  exam‐
59       ple, 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
68       defined 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.  Under UNIX, the directories
88              are separated by a colon (`:'), under OS/2, they  are  separated
89              by a semi-colon (`;').  If this variable is not set, the config‐
90              uration file is searched in two default directories: first,  the
91              current working directory (".") and then in /etc/sane.d.  If the
92              value of the environment variable ends with the directory  sepa‐
93              rator character, then the default directories are searched after
94              the explicitly  specified  directories.   For  example,  setting
95              SANE_CONFIG_DIR  to  "/tmp/config:"  would result in directories
96              tmp/config, ., and /etc/sane.d being searched (in this order).
97
98       SANE_NET_HOSTS
99              A colon-separated list of host names or IP addresses to be  con‐
100              tacted by this backend.
101
102       SANE_NET_TIMEOUT
103              Number  of  seconds  to  wait  for  a response from the saned(8)
104              server for the initial connection request.
105
106       SANE_DEBUG_NET
107              If the library was compiled with  debug  support  enabled,  this
108              environment  variable controls the debug level for this backend.
109              E.g., a value of 128 requests all debug output  to  be  printed.
110              Smaller levels reduce verbosity.
111

BUGS

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

SEE ALSO

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

AUTHOR

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