lrt_tpterm

Client/Server Session Functions

Removes a client from a System/T application.

int lrt_tpterm( );

The lrt_tpterm function removes a client from a System/T application. If the client is in transaction mode, then the transaction is rolled back.

Return Values

If the function fails, it returns -1 and sets tperrno to indicate the error condition.

Parameterization

Parameterization is not applicable to this function.

Example

In the following example, the lrt_tpterm statement terminated the application before recording finished.

Copy code
/* free the buffer, wait 4 seconds and terminate the application*/
lrt_tpfree(data_0);
lr_think_time(4);
lrt_tpterm();