SysSockRecv (FUN)
FUNCTION SysSockRecv : __XINT
Receive data from a TCP socket.
- InOut:
Scope
Name
Type
Comment
Return
SysSockRecv__XINTNumber of bytes received. 0 if failed.
Input
hSocketRTS_IEC_HANDLEHandle to the socket
pbyBufferPOINTER TO BYTE
Buffer to read data from the socket
diBufferSize__XINTMaximum length of the buffer
diFlagsDINTThe flags parameter can be used to influence the behavior of the function beyond the options specified for the associated socket. The semantics of this function are determined by the socket options and the flags parameter. The latter is constructed by using the bitwise OR operator with any of the SOCKET_MSG values. See category “Message flags”.pResultPOINTER TO RTS_IEC_RESULT
Pointer to runtime system error code (see CmpErrors.library)