[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The server command line has the following general form:
moo initial-arguments db-file-name dump-db-file-name network-arguments |
The arguments must occur in this order, e.g., a log file name (-l
) must come before db-file-name and dump-db-file-name while any port number must come afterwards.
-l log-file-name
stderr
.
-e
db-file-name
dump-db-file-name
The particular set of network arguments available depends on which NETWORK_PROTOCOL
the server was compiled with.
For a server compiled for single-user mode (NP_SINGLE
), there are no additional arguments.
For a server compiled for local interprocess communication (NP_LOCAL
), there is just
connect-file-name
DEFAULT_CONNECT_FILE
is used.
For a server compiled for general TCP/IP connections (NP_TCP
), we have
-p port-number
DEFAULT_PORT
is used.
For the sake of backwards compatibility with prior server versions, the -p
may be omitted.
-a n.n.n.n
This specifies a local IP address to bind for all listening and all outgoing
connection attempts. n.n.n.n must be a valid numeric IP address assigned
to one of the local host's network interfaces.
If no specific IP address is specified, any listening (be this the initial
listen implicit in server startup or any explicit listening invoked by the
listen()
function) will bind to all IP addresses on all available
network interfaces; likewise outgoing connection attempts will use whatever
address is available.
This is how, on a host with multiple network interfaces, one makes the server be visible only on one of them. At present, there is no way to specify that the server should bind to a subset of of the available IP addresses having more than one address but less than the entire set available. However, if the operating system offers port-forwarding and network address translation facilities, one can likely use those to achieve a similar effect.
Note that even on hosts with only a single physical network interface, there
will typically be multiple logical ones.
One may, for example, specify the loopback address (usually 127.0.0.1
),
forcing the server to use the loopback interface for all connections, thus
guaranteeing that only local connections, whether incoming or outgoing, will be
possible (and thus acheiving most of the safety of NP_LOCAL
or
NP_SINGLE
without needing specialized clients).
+O
open_network_connection()
but only if the server has been compiled to include support for this function
(i.e., OUTBOUND_NETWORK
has been #define
d).
-O
open_network_connection()
.
Any calls to this function will raise E_PERM
even if the server has been compiled to support it.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |