%SS_SENDBUF

Send bytes from a socket buffer to a connected peer

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
status = %SS_SENDBUF(socket, buf)

Return value

status

Returns SS_SUCCESS (0) or one of the errors in Error codes returned by %SS_SENDBUF below. (n)

Arguments

socket

A descriptor of an open socket created by %SS_SOCKET. (i4)

buf

Buffer containing the data to be sent. (a)

Discussion

%SS_SENDBUF writes outgoing data through a connected stream socket in a loop to ensure the entire data packet is delivered. %SS_SENDBUF is equivalent to calling %SS_SEND in a loop.

If no buffer space is available within the transport system to hold the data to be transmitted, or if %SS_SENDBUF hasn’t finished sending all the data, %SS_SENDBUF blocks.

%SS_RECVBUF is the complimentary function used in a peer Synergy DBL socket application.

Error codes returned by %SS_SENDBUF

See the Socket Errors table for additional information about these errors.

SS_EACCES

SS_EBADF

SS_ECONNABORTED

SS_ECONNRESET

SS_EDESTADDRREQ

SS_EINTR

SS_ENETDOWN

SS_ENETRESET

SS_ENOBUFS

SS_ENOTCONN

SS_ENOTSOCK

SS_EUNKNOWN

SS_NOTINITIALISED