Next: , Previous: , Up: Existing servers   [Contents][Index]


3.4.4 Foo Server

3.4.4.1 General description

The Foo Server is a simple example on how to write Internet protocol servers with Serveez. See Writing servers.

3.4.4.2 Configuration

There are all kinds of configuration items. They are used to explain the implementation of servers. A complete list will follow.

port (port configuration, default: tcp, 42421, *)

Sets up the TCP port and local address.

bar (integer, no default)

Some integer value. Printed as server information.

reply (string, default: Default reply)

Some string. Printed as server information.

messages (string array, default: ...)

Some string array which is actually a list of strings. Also printed as server information.

ports (integer array, default: 1, 2, 3, 4)

Some array of integer numbers. Printed as server information.

assoc (hash, default, default: ...)

An hash map associating keys with values. Printed as server information.

truth (boolean, default: true)

Some boolean value. Printed as server information.