Sample Configuration 3: tibrequest and tibreply
This third example illustrates additional concepts in configuring transports and endpoint implementation, namely: binding a transport to carry several abilities; two-way message traffic; and connection-oriented transports with connecting and listening ends.
| tibrequest | tibreply | |
|---|---|---|
| Program Description | The sample program
tibrequest creates a publisher object, and sends messages over its one-to-many send ability.
tibrequest also creates an inbox subscriber object, and receives reply messages over its one-to-one receive ability. |
The sample program
tibreply creates a subscriber object, and receives request messages over its one-to-many receive ability.
It responds to each request message by sending back a reply message over its one-to-one send ability. |
| Endpoints | The sample realm defines the application tibrequest with one endpoint (named tibrequest-endpoint). | The sample realm defines the application tibreply with one endpoint (named tibreply-endpoint). |