endurox.tprecv¶
- endurox.tprecv(cd: int, flags: int = 0) endurox.TpRecvRet¶
Receive conversation data block. In case if
TPEEVENTerror 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 –
- Parameters:
- Returns:
int –
- tperrno - error code (0 or
TPEEVENT). For other errors, exceptions thrown.
- tperrno - error code (0 or
int –
- tpurcode - return code passed to
tpreturn(). Value is loaded in case if revent returned is
TPEV_SVCFAILorTPEV_SVCSUCC, otherwise previous tpurcode is returned.
- tpurcode - return code passed to
int –
- revent - In case if
TPEEVENTtperrno was returned, may contain: TPEV_DISCONIMM,TPEV_SENDONLY,TPEV_SVCERR,TPEV_SVCFAIL,TPEV_SVCSUCC.
- revent - In case if
dict – ATMI buffer send by peer.