NBS.TCP_ReadBuffer (FB)

Like NBS.TCP_Read this function block of the CAA_NetBaseServices.library serves to read data from the previously established connection given in hConnection. As long as xEnable is TRUE, the handle of the connection is valid. The function block returns the handle of the buffer containing the data. If xReady is TRUE, data has been read successfully and the handle of the buffer is valid. The buffer is passed on and not copied like at NBS.TCP_Read.

Input:

xEnable

BOOL

see: “CAA 指南”

hConnection

CAA.HANDLE

Handle of the connection

Output:

xDone

BOOL

see: “CAA 指南”

xBusy

BOOL

see: “CAA 指南”

xError

BOOL

see: “CAA 指南”

eError

NBS.ERROR

Error id

xReady

BOOL

TRUE: Data received – Handle of buffer is valid

FALSE: No data received – Handle of buffer is invalid

hBuffer

CAA.HANDLE

Handle of the buffer