WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
status = %SS2_SENDTO(socket, buf, bytes_sent, in_port, in_addr6)
Returns SS_SUCCESS (0) or one of the errors in Error codes returned by %SS2_SENDTO below. (n)
A descriptor of an open socket created by %SS_SOCKET. (i4)
Buffer containing the data to be sent. (a)
Returned with the number of bytes sent from buf. (i4)
Specifies the internet port of the target socket. (i4)
Specifies the IP address (IPv4 or IPv6) of the target socket. ([#]byte)
%SS2_SENDTO writes outgoing data through a datagram socket to a specified peer address (in_port and in_addr6) where there has not been a previous call to %SS2_CONNECT. (%SS2_CONNECT establishes a permanent peer address.) It supports both IPv4 and IPv6 formatted addresses.
Successful completion of %SS2_SENDTO does not indicate successful delivery of data.
If the packet data exceeds the maximum IP packet size of the underlying subnets, no data is transmitted and the error SS_EMSGSIZE is returned.
If no buffer space is available within the transport system to hold the data to be transmitted, %SS2_SENDTO blocks.
If you call %SS2_SENDTO on a stream socket, it functions identically to %SS_SEND.
See the Socket Errors table for additional information about these errors.