Annotation of 43BSDReno/share/man/man4/cltp.4, revision 1.1.1.1

1.1       root        1: .\" Copyright (c) 1990 The Regents of the University of California.
                      2: .\" All rights reserved.
                      3: .\"
                      4: .\" Redistribution and use in source and binary forms are permitted
                      5: .\" provided that: (1) source distributions retain this entire copyright
                      6: .\" notice and comment, and (2) distributions including binaries display
                      7: .\" the following acknowledgement:  ``This product includes software
                      8: .\" developed by the University of California, Berkeley and its contributors''
                      9: .\" in the documentation or other materials provided with the distribution
                     10: .\" and in all advertising materials mentioning features or use of this
                     11: .\" software. Neither the name of the University nor the names of its
                     12: .\" contributors may be used to endorse or promote products derived
                     13: .\" from this software without specific prior written permission.
                     14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     15: .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     16: .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     17: .\"
                     18: .\"    @(#)cltp.4      6.1 (Berkeley) 5/30/90
                     19: .\"
                     20: .TH CLTP 4 "May 30, 1990"
                     21: .UC 5
                     22: .SH NAME
                     23: cltp \- ISO Connectionless Transport Protocol
                     24: .SH SYNOPSIS
                     25: .B #include <sys/socket.h>
                     26: .br
                     27: .B #include <netiso/iso.h>
                     28: .PP
                     29: .B s = socket(AF_ISO, SOCK_DGRAM, 0);
                     30: .SH DESCRIPTION
                     31: CLTP is a simple, unreliable datagram protocol which is accessed
                     32: via the SOCK_DGRAM abstraction for the ISO
                     33: protocol family.  CLTP sockets are connectionless, and are
                     34: normally used with the
                     35: .I sendto 
                     36: and
                     37: .IR recvfrom 
                     38: calls, though the
                     39: .IR connect (2)
                     40: call may also be used to fix the destination for future
                     41: packets (in which case the 
                     42: .IR recv (2)
                     43: or
                     44: .IR read (2)
                     45: and 
                     46: .IR send (2)
                     47: or
                     48: .IR write(2)
                     49: system calls may be used).
                     50: .PP
                     51: CLTP address formats are identical to those used by TP.
                     52: In particular CLTP provides a service selector in addition
                     53: to the normal ISO NSAP.  Note that the CLTP selector
                     54: space is separate from the TP selector space (i.e. a CLTP selector
                     55: may not be \*(lqconnected\*(rq to a TP selector).
                     56: .PP
                     57: Options at the CLNP network level may be used with CLTP; see
                     58: .IR clnp (4).
                     59: .SH DIAGNOSTICS
                     60: A socket operation may fail with one of the following errors returned:
                     61: .TP 15
                     62: [EISCONN]
                     63: when trying to establish a connection on a socket which
                     64: already has one, or when trying to send a datagram with the destination
                     65: address specified and the socket is already connected;
                     66: .TP 15
                     67: [ENOTCONN]
                     68: when trying to send a datagram, but
                     69: no destination address is specified, and the socket hasn't been
                     70: connected;
                     71: .TP 15
                     72: [ENOBUFS]
                     73: when the system runs out of memory for
                     74: an internal data structure;
                     75: .TP 15
                     76: [EADDRINUSE]
                     77: when an attempt
                     78: is made to create a socket with a selector which has already been
                     79: allocated;
                     80: .TP 15
                     81: [EADDRNOTAVAIL]
                     82: when an attempt is made to create a 
                     83: socket with a network address for which no network interface
                     84: exists.
                     85: .SH SEE ALSO
                     86: getsockopt(2), recv(2), send(2), socket(2), intro(4), iso(4), clnp(4)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.