1IMP(4P)                                                                IMP(4P)
2
3
4

NAME

6       imp - IMP raw socket interface
7

SYNOPSIS

9       #include <sys/socket.h>
10       #include <netinet/in.h>
11       #include <netimp/if_imp.h>
12
13       s = socket(AF_IMPLINK, SOCK_RAW, proto);
14

DESCRIPTION

16       The  raw imp socket provides direct access to the imp(4) network inter‐
17       face.  Users send packets  through  the  interface  using  the  send(2)
18       calls, and receive packets with the recv(2), calls.  All outgoing pack‐
19       ets must have an 1822 96-bit leader on the  front.   Likewise,  packets
20       received  by  the  user  will  have this leader on the front.  The 1822
21       leader and the legal values for the various fields are defined  in  the
22       include  file  <netimp/if_imp.h>.   The raw imp interface automatically
23       installs the length and destination address in the 1822 leader  of  all
24       outgoing packets; these need not be filled in by the user.
25
26       If  the  protocol selected, proto, is zero, the socket will receive all
27       IMP messages except RFNM and incompletes which are not input data for a
28       kernel protocol.  If proto is non-zero, only messages for the specified
29       link type will be received.
30

DIAGNOSTICS

32       An operation on a socket may fail with one of the following errors:
33
34       [EISCONN]      when trying to establish a connection on a socket  which
35                      already  has one, or when trying to send a datagram with
36                      the destination address  specified  and  the  socket  is
37                      already connected;
38
39       [ENOTCONN]     when  trying  to  send  a  datagram,  but no destination
40                      address is specified, and the socket  hasn't  been  con‐
41                      nected;
42
43       [ENOBUFS]      when  the system runs out of memory for an internal data
44                      structure;
45
46       [ENOBUFS]      eight messages to the destination host are  outstanding,
47                      and another eight are already queued for output;
48
49       [EADDRNOTAVAIL]
50                      when  an  attempt is made to create a socket with a net‐
51                      work address for which no network interface exists.
52

SEE ALSO

54       intro(4N), inet(4F), imp(4)
55
56
57
584.2 Berkeley Distribution        May 16, 1986                          IMP(4P)
Impressum