TibrvTransport::destroy()

Method

Declaration

TibrvStatus destroy()

Purpose

Destroy a transport.

Remarks

Programs must explicitly destroy each transport object, either using this method, or by calling Tibrv::close() (which destroys all transports).

Destroying a transport achieves these effects:

The transport flushes all outbound data to the Rendezvous daemon.

This effect is especially important, and neither exiting the program nor calling Tibrv::close() is sufficient to flush outbound data.

The transport invalidates (but does not destroy) all associated listeners.
Subsequent calls that use the destroyed transport return an error status.
Storage for the transport object is freed.

See Also

TibrvTransport::isValid()