send(wdd)
NAME
send − Transmit data over the WDD Line
SYNTAX
#include <sys/types.h>
#include <sys/socket.h>
cc = send (s, buf, buflen, flags)
int cc, s;
char ∗buf;
int buflen, flags;
DESCRIPTION
When the bind() system call has been successfully executed, the client can transmit data over the line by issuing the send() or write() system call.
ARGUMENTS
Input Arguments
s value returned by the socket() system call
buf specifies the pointer to the data to be sent
buflen specifies the length of the data buffer
flags If not used, should be set to zero.
RETURN VALUE
If the output is successful, the return value (cc) is the number of characters actually sent. Otherwise, -1 is returned and the global variable errno is set to indicate the error.
DIANOSTICS
[EBADF] Invalid socket descriptor.
[EFAULT] The specified buffer points outside the allocated address space.
[EMSGSIZE] Data packet is too large.
[ENODEV] A successful bind() has not been made by this socket.
[EACCES] The caller is not the owner of the line.
[ENOBUFS] No memory available or the output queue is full.
[ESHUTDOWN] Line shutdown due to modem signal failure.
[ENETDOWN] The line is not yet available for transmission or has been disabled by Network Management.
[EWOULDBLOCK] The socket is marked "non-blocking" and the process would be delayed in the send operation.
[EINTR] The send() operation was interrupted by a signal, possibly an indication that the Modem Connect Line has been disabled.
SEE ALSO
socket(2w), bind(2w), getsockopt(2w), setsockopt(2w), close(2w), read(2w), recv(2w), fcntl(2), sigvec(2).