Annotation of 43BSDTahoe/man/man4/imp.4, revision 1.1.1.1

1.1       root        1: .\" Copyright (c) 1983 Regents of the University of California.
                      2: .\" All rights reserved.  The Berkeley software License Agreement
                      3: .\" specifies the terms and conditions for redistribution.
                      4: .\"
                      5: .\"    @(#)imp.4p      6.2 (Berkeley) 5/16/86
                      6: .\"
                      7: .TH IMP 4P "May 16, 1986"
                      8: .UC 5
                      9: .SH NAME
                     10: imp \- IMP raw socket interface
                     11: .SH SYNOPSIS
                     12: .B #include <sys/socket.h>
                     13: .br
                     14: .B #include <netinet/in.h>
                     15: .br
                     16: .B #include <netimp/if_imp.h>
                     17: .PP
                     18: .B s = socket(AF_IMPLINK, SOCK_RAW, proto);
                     19: .SH DESCRIPTION
                     20: The raw imp socket provides direct access to the
                     21: .IR imp (4)
                     22: network interface.  Users send packets through
                     23: the interface using the 
                     24: .IR send (2)
                     25: calls, and receive packets with the
                     26: .IR recv (2),
                     27: calls.  All outgoing packets must have an 1822 96-bit
                     28: leader on the front.  Likewise, packets received
                     29: by the user will have this leader on the front.  The
                     30: 1822 leader and the legal values for the various fields
                     31: are defined in the include file
                     32: .RI < netimp/if_imp.h >.
                     33: The raw imp interface automatically installs the length
                     34: and destination address in the 1822 leader of all
                     35: outgoing packets; these need not be filled in by the user.
                     36: .PP
                     37: If the protocol selected,
                     38: .IR proto ,
                     39: is zero,
                     40: the socket will receive
                     41: all IMP messages except RFNM and incompletes
                     42: which are not input data for a kernel protocol.
                     43: If
                     44: .I proto
                     45: is non-zero,
                     46: only messages for the specified link type will be received.
                     47: .SH DIAGNOSTICS
                     48: An operation on a socket may fail with one of the following
                     49: errors:
                     50: .TP 15
                     51: [EISCONN]
                     52: when trying to establish a connection on a socket which
                     53: already has one, or when trying to send a datagram with the destination
                     54: address specified and the socket is already connected;
                     55: .TP 15
                     56: [ENOTCONN]
                     57: when trying to send a datagram, but
                     58: no destination address is specified, and the socket hasn't been
                     59: connected;
                     60: .TP 15
                     61: [ENOBUFS]
                     62: when the system runs out of memory for
                     63: an internal data structure;
                     64: .TP 15
                     65: [ENOBUFS]
                     66: eight messages to the destination host are outstanding,
                     67: and another eight are already queued for output;
                     68: .TP 15
                     69: [EADDRNOTAVAIL]
                     70: when an attempt is made to create a 
                     71: socket with a network address for which no network interface
                     72: exists.
                     73: .SH SEE ALSO
                     74: 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.