Manual : Generic Message Example

Applies To:

  • BIG-IP LTM

    15.1.10, 15.1.9, 15.1.8, 15.1.7, 15.1.6, 15.1.5, 15.1.4, 15.1.3, 15.1.2, 15.1.1, 15.1.0, 15.0.1, 15.0.0, 14.1.5, 14.1.4, 14.1.3, 14.1.2, 14.1.0, 14.0.1, 14.0.0, 13.1.5, 13.1.4, 13.1.3, 13.1.1, 13.1.0

Generic 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.