unix_recv (FUN)ΒΆ
FUNCTION unix_recv : INT
receive a message from a unix domain socket see manpage recv
Returnvalue: returns the number of bytes received, or -1 if an error occurred. In the event of an error, errno is set to indicate the error.
Internally, this function calls recv(), which returns of type ssize_t. This might be different to the return value of the IEC function unix_recv, which is INT. Calling with length >= INT Max can lead to invalid return values of this function.
- InOut:
Scope
Name
Type
Return
unix_recv
INT
Input
sockfd
INT
buf
POINTER TO BYTE
len
ULINT
flags
INT