RDT_Base.ReceiveBytes
(METH)
METHOD ReceiveBytes : NBS.ERROR
It receives data from an active conncection
- InOut:
Scope
Name
Type
Comment
Return
ReceiveBytes
NBS.ERROR
Input
itfConnection
NBS.IConnection
Connection to use
pData
__XWORD
Pointer where to write the data received
diByteWait
DINT
How many data waiting for (the above buffer must be large enought)
tTimeout
TIME
Receiving timeout
xNoBlock
BOOL
Exit in case of no data in the socket
Output
diCount
DINT
How many data received