All rights reserved.
%sccs.include.redist.man%
@(#)cltp.4 6.1 (Berkeley) 05/30/90
s = socket(AF_ISO, SOCK_DGRAM, 0);
CLTP address formats are identical to those used by TP. In particular CLTP provides a service selector in addition to the normal ISO NSAP. Note that the CLTP selector space is separate from the TP selector space (i.e. a CLTP selector may not be \*(lqconnected\*(rq to a TP selector).
Options at the CLNP network level may be used with CLTP; see clnp (4).
15 [EISCONN] when trying to establish a connection on a socket which already has one, or when trying to send a datagram with the destination address specified and the socket is already connected;
15 [ENOTCONN] when trying to send a datagram, but no destination address is specified, and the socket hasn't been connected;
15 [ENOBUFS] when the system runs out of memory for an internal data structure;
15 [EADDRINUSE] when an attempt is made to create a socket with a selector which has already been allocated;
15 [EADDRNOTAVAIL] when an attempt is made to create a socket with a network address for which no network interface exists.