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
39              server.  This will prevent the backend from blocking for several
40              minutes trying to connect to an unresponsive saned host (network
41              outage, host down, ...). The environment variable SANE_NET_TIME‐
42              OUT can also be used to specify the timeout at runtime.
43
44       Empty lines and lines starting with a hash mark (#) are ignored.   Note
45       that  IPv6  addresses in this file do not need to be enclosed in square
46       brackets.  A sample configuration file is shown below:
47
48              scan-server.somedomain.firm
49              192.168.0.1
50              # this is a comment
51              localhost
52              ::1
53
54       The above list of hosts can be extended at run-time  using  environment
55       variable  SANE_NET_HOSTS.   This  environment variable is a colon-sepa‐
56       rated list of hostnames or IP addresses that  should  be  contacted  in
57       addition  to  the hosts mentioned in the configuration file.  For exam‐
58       ple, a user could set the environment variable to the string:
59
60              new.scanner.com:[::1]:192.168.0.2:scanner.univ.edu
61
62       To request that hosts new.scanner.com , [::1] , 192.168.0.2  and  scan‐
63       ner.univ.edu are contacted in addition to the hosts listed above.
64
65       For  this  backend to function properly, it is also necessary to define
66       the sane-port service in /etc/services.  The  sane  service  should  be
67       defined using a line of the following form:
68
69              sane-port 6566/tcp # SANE network scanner daemon
70

FILES

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

ENVIRONMENT

84       SANE_CONFIG_DIR
85              This environment variable specifies the list of directories that
86              may contain the configuration file.  Under UNIX, the directories
87              are  separated  by a colon (`:'), under OS/2, they are separated
88              by a semi-colon (`;').  If this variable is not set, the config‐
89              uration  file is searched in two default directories: first, the
90              current working directory (".") and then in /etc/sane.d.  If the
91              value  of the environment variable ends with the directory sepa‐
92              rator character, then the default directories are searched after
93              the  explicitly  specified  directories.   For  example, setting
94              SANE_CONFIG_DIR to "/tmp/config:" would  result  in  directories
95              "tmp/config",  ".",  and  "/etc/sane.d"  being searched (in this
96              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 server
104              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  has  timed  out, the net backend may loop with authorization
114       requests.
115

SEE ALSO

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

AUTHOR

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