TibrvTransport.destroy()

Method

Declaration

void destroy()

Purpose

Destroy a transport.

Remarks

Programs must explicitly destroy each transport object.

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 events.
Subsequent calls that use the destroyed transport throw the exception TibrvStatus.INVALID_TRANSPORT.

It is illegal to destroy the intra-process transport (see Tibrv.processTransport()).

See Also

TibrvTransport.isValid()