Annotation of cci/usr/src/man/man4/imp.4p, revision 1.1.1.1

1.1       root        1: .TH IMP 4P "26 March 1982"
                      2: .UC 4
                      3: .SH NAME
                      4: imp \- IMP raw socket interface
                      5: .SH SYNOPSIS
                      6: .B #include <sys/socket.h>
                      7: .br
                      8: .B #include <netinet/in.h>
                      9: .br
                     10: .B #include <netimp/if_imp.h>
                     11: .PP
                     12: .B s = socket(AF_IMPLINK, SOCK_RAW, IMPLINK_IP);
                     13: .SH DESCRIPTION
                     14: The raw imp socket provides direct access to the
                     15: .IR imp (4)
                     16: network interface.  Users send packets through
                     17: the interface using the 
                     18: .IR send (2)
                     19: calls, and receive packets with the
                     20: .IR recv (2),
                     21: calls.  All outgoing packets must have space for an 1822 96-bit
                     22: leader on the front.  Likewise, packets received
                     23: by the user will have this leader on the front.  The
                     24: 1822 leader and the legal values for the various fields
                     25: are defined in the include file
                     26: .RI < netimp/if_imp.h >.
                     27: .PP
                     28: The raw imp interface automatically installs the length
                     29: and destination address in the 1822 leader of all
                     30: outgoing packets; these need not be filled in by the user.
                     31: .SH DIAGNOSTICS
                     32: An operation on a socket may fail with one of the following
                     33: errors:
                     34: .TP 15
                     35: [EISCONN]
                     36: when trying to establish a connection on a socket which
                     37: already has one, or when trying to send a datagram with the destination
                     38: address specified and the socket is already connected;
                     39: .TP 15
                     40: [ENOTCONN]
                     41: when trying to send a datagram, but
                     42: no destination address is specified, and the socket hasn't been
                     43: connected;
                     44: .TP 15
                     45: [ENOBUFS]
                     46: when the system runs out of memory for
                     47: an internal data structure;
                     48: .TP 15
                     49: [EADDRNOTAVAIL]
                     50: when an attempt is made to create a 
                     51: socket with a network address for which no network interface
                     52: exists.
                     53: .SH SEE ALSO
                     54: intro(4N), inet(4F), imp(4)

unix.superglobalmegacorp.com

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