Name

Inet_Mode — specify whether Interchange server should open an INET socket and listen on a port

SYNOPSIS

No | Yes

DESCRIPTION

Specify whether the Interchange server should open an INET-domain socket and listen on some port (7786 by default). The port can be changed with the TcpMap directive.

This configuration directive can be overridden using interchange -i switch on the command line.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive

EXAMPLES

Example: Enabling Inet_Mode

Inet_Mode Yes

NOTES

In general, you will need Interchange INET mode when the Web and Interchange server are not the same machine.

The default port number, 7786, was chosen since it represents the ASCII numbers of letters M and V. (Interchange was once called MiniVend).

AVAILABILITY

Inet_Mode is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 416 (context shows lines 406-411)

['Inet_Mode',         'yesno',            (
                      defined $Global::Inet_Mode
                      ||
                      defined $Global::Unix_Mode
                      )
                      ? ($Global::Inet_Mode || 0) : 'No'],

Source: lib/Vend/Config.pm
Line 5414 (context shows lines 5414-5426)

sub parse_yesno {
my($var, $value) = @_;
$_ = $value;
if (m/^y/i || m/^t/i || m/^1/ || m/^on/i) {
  return 1;
}
elsif (m/^n/i || m/^f/i || m/^0/ || m/^of/i) {
  return 0;
}
else {
  config_error("Use 'yes' or 'no' for the $var directive\n");
}
}

AUTHORS

Interchange Development Group

SEE ALSO

Unix_Mode(7ic)

DocBook! Interchange!