Manual Chapter :
Generic Message Example
Applies To:
Show VersionsGeneric Message Example
This section provides an example of using Generic Message to implement a simple chat client.
Each new connection will be asked for the peer's name. The provided name will be used to add a
dynamic route to the route table.
Subsequent text entered will be treated as a request or response message. Requests are of the
form: "<destination>:<text>\n". Responses do not contain a destination. A response message
will be routed to the originator of the oldest request received.