xref: /csrg-svn/share/man/man4/cltp.4 (revision 62998)
1*62998Sbostic.\" Copyright (c) 1990, 1991, 1993
2*62998Sbostic.\"	The Regents of the University of California.  All rights reserved.
342482Ssklower.\"
442482Ssklower.\" %sccs.include.redist.man%
542482Ssklower.\"
6*62998Sbostic.\"     @(#)cltp.4	8.1 (Berkeley) 06/09/93
742482Ssklower.\"
847675Scael.Dd
947675Scael.Dt CLTP 4
1047675Scael.Os
1147675Scael.Sh NAME
1247675Scael.Nm cltp
1347675Scael.Nd
1447675Scael.Tn ISO
1547675ScaelConnectionless Transport Protocol
1647675Scael.Sh SYNOPSIS
1747675Scael.Fd #include <sys/socket.h>
1847675Scael.Fd #include <netiso/iso.h>
1947675Scael.Ft int
2047675Scael.Fn socket AF_ISO SOCK_DGRAM 0
2147675Scael.Sh DESCRIPTION
2247675Scael.Tn CLTP
2347675Scaelis a simple, unreliable datagram protocol which is accessed
2447675Scaelvia the
2547675Scael.Dv SOCK_DGRAM
2647675Scaelabstraction for the
2747675Scael.Tn ISO
2847675Scaelprotocol family.
2947675Scael.Tn CLTP
3047675Scaelsockets are connectionless, and are
3142482Ssklowernormally used with the
3247675Scael.Xr sendto
3342482Ssklowerand
3447675Scael.Xr recvfrom
3542482Ssklowercalls, though the
3647675Scael.Xr connect 2
3742482Ssklowercall may also be used to fix the destination for future
3842482Ssklowerpackets (in which case the
3947675Scael.Xr recv 2
4042482Sskloweror
4147675Scael.Xr read 2
4242482Ssklowerand
4347675Scael.Xr send 2
4442482Sskloweror
4547675Scael.Xr write 2
4642482Ssklowersystem calls may be used).
4747675Scael.Pp
4847675Scael.Tn CLTP
4947675Scaeladdress formats are identical to those used by TP.
5047675ScaelIn particular
5147675Scael.Tn CLTP
5247675Scaelprovides a service selector in addition
5347675Scaelto the normal
5447675Scael.Tn ISO NSAP .
5547675ScaelNote that the
5647675Scael.Tn CLTP
5747675Scaelselector
5847675Scaelspace is separate from the TP selector space (i.e. a
5947675Scael.Tn CLTP
6047675Scaelselector
6147675Scaelmay not be
6247675Scael.Dq connected
6347675Scaelto a TP selector).
6447675Scael.Pp
6547675ScaelOptions at the
6647675Scael.Tn CLNP
6747675Scaelnetwork level may be used with
6847675Scael.Tn CLTP ;
6947675Scaelsee
7047675Scael.Xr clnp 4 .
7147675Scael.Sh DIAGNOSTICS
7242482SsklowerA socket operation may fail with one of the following errors returned:
7347675Scael.Bl -tag -width [EADDRNOTAVAIL]
7447675Scael.It Bq Er EISCONN
7542482Ssklowerwhen trying to establish a connection on a socket which
7642482Sskloweralready has one, or when trying to send a datagram with the destination
7742482Sskloweraddress specified and the socket is already connected;
7847675Scael.It Bq Er ENOTCONN
7942482Ssklowerwhen trying to send a datagram, but
8042482Ssklowerno destination address is specified, and the socket hasn't been
8142482Ssklowerconnected;
8247675Scael.It Bq Er ENOBUFS
8342482Ssklowerwhen the system runs out of memory for
8442482Sskloweran internal data structure;
8547675Scael.It Bq Er EADDRINUSE
8642482Ssklowerwhen an attempt
8742482Sskloweris made to create a socket with a selector which has already been
8842482Ssklowerallocated;
8947675Scael.It Bq Er EADDRNOTAVAIL
9042482Ssklowerwhen an attempt is made to create a
9142482Ssklowersocket with a network address for which no network interface
9242482Ssklowerexists.
9347675Scael.El
9447675Scael.Sh SEE ALSO
9547675Scael.Xr getsockopt 2 ,
9647675Scael.Xr recv 2 ,
9747675Scael.Xr send 2 ,
9847675Scael.Xr socket 2 ,
9947675Scael.Xr intro 4 ,
10047675Scael.Xr iso 4 ,
10147675Scael.Xr clnp 4
102