Open topic with navigation
WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
status = %SS_SENDTO(socket, buf, bytes_sent, in_port, in_addr)
Returns SS_SUCCESS (0) or one of the errors in Error codes returned by %SS_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 IPv4 address of the target socket. (i4)
%SS_SENDTO writes outgoing data through a datagram socket to a specified peer address (in_port and in_addr) where there has not been a previous call to %SS_CONNECT. (%SS_CONNECT establishes a permanent peer address.)
Successful completion of %SS_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, %SS_SENDTO blocks.
If you call %SS_SENDTO on a stream socket, it functions identically to %SS_SEND.
See the Socket Errors table for additional information about these errors.