ATM_SEND(4N) DEVICES AND NETWORK INTERFACES ATM_SEND(4N) NAME atm_send, atm_sendto - send data over an established ATM connection SYNOPSIS #include atm_send(fd, buf, len) int fd; caddr_t buf; int len; atm_sendto(fd, buf, len, vpvc) int fd; caddr_t buf; int len; Vpvc vpvc; DESCRIPTION atm_send() and atm_sendto() attempt to write len bytes of data from the buffer pointed to by buf over an established ATM connection referenced by the file descriptor fd. atm_send() is used with switched virtual circuits (SVCs) and may be used with permanent virtual circuits (PVCs) only if fd is associated with a single PVC (see atm_connect_pvc(4N)). When fd is associated with multiple PVCs, atm_sendto() is used to transmit the data over the connection identified by the VPI/VCI pair vpvc. The identifier vpvc must correspond to an outgoing PVC actively connected from a previous call to atm_connect_pvc(4N). atm_sendto() may not be used with SVCs. The number of bytes to send as specified by len must not exceed the size of buf, nor must the number of bytes exceed the maximum transmission unit (MTU) for the connection. See atm_open(4N) for details on the MTU. For connections using an AAL type of aal_null, the data must be in FORE's inter- mediate cell format. The number of bytes sent must there- fore be a multiple of 56. See atm_intro(4N) for details on cell formats. RETURN VALUES atm_send() and atm_sendto() return the number of bytes transmitted on success. On failure, they return -1 and set atm_errno to indicate the error. atm_error(4N) can be used to print a text description of errors returned by atm_send() and atm_sendto(). ERRORS FSI Release 2.3 Last change: 28 February 1994 1 ATM_SEND(4N) DEVICES AND NETWORK INTERFACES ATM_SEND(4N) atm_send() and atm_sendto() can also fail with errors returned from the write(2) and writev(2) system calls. On ULTRIX platforms, calling atm_send() or atm_sendto() on a closed connection may cause a SIGPIPE signal to be sent to the calling process. Unless caught or ignored, this ter- minates the process. SEE ALSO atm_intro(4N), atm_open(4N), atm_pvc(4N), write(2), wri- tev(2) FSI Release 2.3 Last change: 28 February 1994 2