TPS module interface

The TPS (Tcl Procedure Stream) UPoC is a user-extendable method to control or modify messages.

In some environments, the system must process messages early or late in the message flow, on the inbound or outbound side of a connection. For example, when coalescing messages.

TPS UPoCs are used inside the protocol and translation threads.

In a TPS, a message enters the module at the beginning of the stream. That module can modify, hold, or discard the message.

Any resulting messages are passed along the stream to the next module in sequence.

When the last module in the stream produces a message, the engine considers the TPS processing to be complete and continues processing the message.

Note: Each module in the stream is unaware of its relative position within the stream. A module is also unaware of the function or existence of modules on both sides of it.