TPGBLKTIME(3)


Table of Contents

1. NAME
2. SYNOPSIS
3. DESCRIPTION
4. RETURN VALUE
5. ERRORS
6. EXAMPLE
7. BUGS
8. SEE ALSO
9. COPYING

1. NAME

tpgblktime - Get timeout configuration for ATMI library

2. SYNOPSIS

#include <atmi.h>

int tpgblktime(long flags);

For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm

For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm

3. DESCRIPTION

Get current configured XATMI IPC call timeout setting in seconds. If particular setting is not configured, value 0 is returned.

Valid flags

TPBLK_ALL Get thread specific timeout setting.

TPBLK_NEXT Get thread specific next call timeout setting.

0 Get effective timeout setting used that will be used for next XATMI IPC call (send/receive). This will return value including the TPBLK_NEXT value. Thought TPBLK_NEXT is only processed for certain XATMI calls. See the list in tpsblktime(3) manpage.

4. RETURN VALUE

On success, tpgblktime() return timeout configured; on error, -1 is returned, with tperrno set to indicate the error.

5. ERRORS

Note that tpstrerror() returns generic error message plus custom message with debug info from last function call.

TPEINVAL flags is not TPBLK_ALL, TPBLK_NEXT or 0.

TPESYSTEM tpinit(3) for client was not called and not other timeout was configured for given context.

6. EXAMPLE

See atmitest/test051_settout/atmiclt51_blk.c for sample code.

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

tsgblktime(3) tptoutget(3) tptoutset(3) ex_env(5)

9. COPYING

© Mavimax, Ltd