NAME
spines_sendto - Sends a message to a Spines socket
SYNOPSIS
#include "spines_lib.h"
int spines_sendto(int s, const void *buf, size_t len,
int flags, const struct sockaddr *to,
socklen_t tolen);
DESCRIPTION
spines_sendto is used to send a message to a Spines
socket.
The parameter s is the file descriptor of the sending socket.
buf points to the beginning of a buffer and len is the length
of it. The destination client is identified by the parameter
to. The parameter flags is not yet used.
RETURN VALUE
spines_sendto returns the number of bytes sent or -1 if an
error occurred.