endurox.tprecv

endurox.tprecv(cd: int, flags: int = 0) endurox.TpRecvRet

Receive conversation data block. In case if TPEEVENT error is received, exception is not thrown, instead event code is loaded into revent return value. In case if event is not generated, revent is set to 0.

tprecv example
    cd = e.tpconnect("CONVSV", {"data":"HELLO"}, e.TPRECVONLY)
    tperrno, tpurcode, revent = e.tprecv(cd)

For more details see tprecv(3) C API call.

Raises:

AtmiException

Following error codes may be present:
TPEINVAL - Invalid call descriptor.
TPETIME - Queue was blocked and it timeout out.
TPESYSTEM - System error occurred.
TPEOS - Operating system error occurred.
TPEPROTO - Protocol error is generated if given process is in receiver (TPRECVONLY) mode.
TPEBLOCK - TPNOBLOCK flag was set and message queue was full.

Parameters:
Returns: