WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
status = %SS2_RECVFROM(socket, buf, bytes_received, [in_port, in_addr6] & [, SS_MSG_PEEK])
Returns SS_SUCCESS (0) or one of the errors in Error codes returned by %SS2_RECVFROM below. (n)
A descriptor of an open socket created by %SS_SOCKET. (i4)
Buffer returned with the incoming data. (a)
Returned with the number of bytes received and placed into buf. (i4)
(optional) Returned with the internet port of the sending socket. (i4)
(optional) Returned with the IPv6 address of the sending socket. ([#]byte)
If either in_port or in_addr6 is passed, they must both be passed.
(optional) Peek into the data that is next in line to be received without removing it from the system’s buffers. (n)
%SS2_RECVFROM reads incoming data from a bound datagram socket where there has not been a previous call to %SS2_CONNECT. (%SS2_CONNECT establishes a permanent peer address.) It optionally returns the source port and IP address.
%SS2_RECVFROM extracts data from the first queued datagram up to the size of buf. If the datagram is larger than the size of buf, the overflow data is lost, and the error SS_EMSGSIZE is returned. If no incoming data is available at the socket, %SS2_RECVFROM blocks until data arrives.
If you call this function on a connected stream socket, it functions identically to %SS_RECV.
See the Socket Errors table for additional information about these errors.