|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: s
Length: 6710 (0x1a36)
Names: »spp.4p«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat4/spp.4p«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 44 65 76 69 63 65 73 20 61 6e 64 20 46 61 63 69 ┆ u_ a_ l Devices and Faci┆
0x0040…0060 6c 69 74 69 65 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 70 70 28 34 70 29 0a 0a 0a 0a ┆lities spp(4p) ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x0080…00a0 20 20 73 70 70 20 2d 20 58 65 72 6f 78 20 53 65 71 75 65 6e 63 65 64 20 50 61 63 6b 65 74 20 50 ┆ spp - Xerox Sequenced Packet P┆
0x00a0…00c0 72 6f 74 6f 63 6f 6c 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 ┆rotocol S S S SY Y Y YN N N NT ┆
0x00c0…00e0 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 ┆T T TA A A AX X X X # # # #┆
0x00e0…0100 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 ┆i i i in n n nc c c cl l l lu u ┆
0x0100…0120 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 ┆u ud d d de e e e < < < <s s s s┆
0x0120…0140 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 79 08 79 08 ┆y y y ys s s s/ / / /t t t ty y ┆
0x0140…0160 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 ┆y yp p p pe e e es s s s. . . .h┆
0x0160…0180 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 ┆ h h h> > > > # # # #i i i ┆
0x0180…01a0 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 ┆in n n nc c c cl l l lu u u ud d┆
0x01a0…01c0 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 ┆ d de e e e < < < <s s s sy y y ┆
0x01c0…01e0 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 63 08 63 ┆ys s s s/ / / /s s s so o o oc c┆
0x01e0…0200 08 63 08 63 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 74 08 74 08 74 08 74 2e 08 2e 08 2e 08 2e ┆ c ck k k ke e e et t t t. . . .┆
0x0200…0220 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 ┆h h h h> > > > # # # #i i i┆
0x0220…0240 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 ┆ in n n nc c c cl l l lu u u ud ┆
0x0240…0260 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 6e 08 6e 08 6e 08 6e 65 08 65 08 65 ┆d d de e e e < < < <n n n ne e e┆
0x0260…0280 08 65 74 08 74 08 74 08 74 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 6e 08 ┆ et t t tn n n ns s s s/ / / /n ┆
0x0280…02a0 6e 08 6e 08 6e 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 ┆n n ns s s s. . . .h h h h> > > ┆
0x02a0…02c0 3e 0a 20 20 20 20 20 73 08 73 08 73 08 73 20 3d 08 3d 08 3d 08 3d 20 73 08 73 08 73 08 73 6f 08 ┆> s s s s = = = = s s s so ┆
0x02c0…02e0 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 74 08 74 08 74 08 ┆o o oc c c ck k k ke e e et t t ┆
0x02e0…0300 74 28 08 28 08 28 08 28 41 08 41 08 41 08 41 46 08 46 08 46 08 46 5f 08 5f 08 5f 08 5f 4e 08 4e ┆t( ( ( (A A A AF F F F_ _ _ _N N┆
0x0300…0320 08 4e 08 4e 53 08 53 08 53 08 53 2c 08 2c 08 2c 08 2c 20 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 ┆ N NS S S S, , , , S S S SO O O ┆
0x0320…0340 4f 43 08 43 08 43 08 43 4b 08 4b 08 4b 08 4b 5f 08 5f 08 5f 08 5f 53 08 53 08 53 08 53 54 08 54 ┆OC C C CK K K K_ _ _ _S S S ST T┆
0x0340…0360 08 54 08 54 52 08 52 08 52 08 52 45 08 45 08 45 08 45 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d ┆ T TR R R RE E E EA A A AM M M M┆
0x0360…0380 2c 08 2c 08 2c 08 2c 20 30 08 30 08 30 08 30 29 08 29 08 29 08 29 3b 08 3b 08 3b 08 3b 0a 0a 20 ┆, , , , 0 0 0 0) ) ) ); ; ; ; ┆
0x0380…03a0 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 ┆ # # # #i i i in n n nc c c c┆
0x03a0…03c0 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c ┆l l l lu u u ud d d de e e e < <┆
0x03c0…03e0 08 3c 08 3c 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 74 08 74 08 74 08 74 6e 08 6e 08 6e 08 6e ┆ < <n n n ne e e et t t tn n n n┆
0x03e0…0400 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 73 08 73 08 73 08 73 70 08 70 08 70 08 70 2e 08 2e 08 ┆s s s s/ / / /s s s sp p p p. . ┆
0x0400…0420 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 73 08 73 08 73 08 73 20 3d ┆. .h h h h> > > > s s s s =┆
0x0420…0440 08 3d 08 3d 08 3d 20 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 ┆ = = = s s s so o o oc c c ck k ┆
0x0440…0460 6b 08 6b 65 08 65 08 65 08 65 74 08 74 08 74 08 74 28 08 28 08 28 08 28 41 08 41 08 41 08 41 46 ┆k ke e e et t t t( ( ( (A A A AF┆
0x0460…0480 08 46 08 46 08 46 5f 08 5f 08 5f 08 5f 4e 08 4e 08 4e 08 4e 53 08 53 08 53 08 53 2c 08 2c 08 2c ┆ F F F_ _ _ _N N N NS S S S, , ,┆
0x0480…04a0 08 2c 20 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 43 08 43 08 43 08 43 4b 08 4b 08 4b 08 4b 5f ┆ , S S S SO O O OC C C CK K K K_┆
0x04a0…04c0 08 5f 08 5f 08 5f 53 08 53 08 53 08 53 45 08 45 08 45 08 45 51 08 51 08 51 08 51 50 08 50 08 50 ┆ _ _ _S S S SE E E EQ Q Q QP P P┆
0x04c0…04e0 08 50 41 08 41 08 41 08 41 43 08 43 08 43 08 43 4b 08 4b 08 4b 08 4b 45 08 45 08 45 08 45 54 08 ┆ PA A A AC C C CK K K KE E E ET ┆
0x04e0…0500 54 08 54 08 54 2c 08 2c 08 2c 08 2c 20 30 08 30 08 30 08 30 29 08 29 08 29 08 29 3b 08 3b 08 3b ┆T T T, , , , 0 0 0 0) ) ) ); ; ;┆
0x0500…0520 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 ┆ ; D D D DE E E ES S S SC C C C┆
0x0520…0540 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 ┆R R R RI I I IP P P PT T T TI I ┆
0x0540…0560 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 53 50 50 20 70 ┆I IO O O ON N N N The SPP p┆
0x0560…0580 72 6f 74 6f 63 6f 6c 20 70 72 6f 76 69 64 65 73 20 72 65 6c 69 61 62 6c 65 2c 20 66 6c 6f 77 2d ┆rotocol provides reliable, flow-┆
0x0580…05a0 63 6f 6e 74 72 6f 6c 6c 65 64 2c 20 74 77 6f 2d 77 61 79 0a 20 20 20 20 20 74 72 61 6e 73 6d 69 ┆controlled, two-way transmi┆
0x05a0…05c0 73 73 69 6f 6e 20 6f 66 20 64 61 74 61 2e 20 20 49 74 20 69 73 20 61 20 62 79 74 65 2d 73 74 72 ┆ssion of data. It is a byte-str┆
0x05c0…05e0 65 61 6d 20 70 72 6f 74 6f 63 6f 6c 20 75 73 65 64 20 74 6f 0a 20 20 20 20 20 73 75 70 70 6f 72 ┆eam protocol used to suppor┆
0x05e0…0600 74 20 74 68 65 20 53 4f 43 4b 5f 53 54 52 45 41 4d 20 61 62 73 74 72 61 63 74 69 6f 6e 2e 20 20 ┆t the SOCK_STREAM abstraction. ┆
0x0600…0620 53 50 50 20 75 73 65 73 20 74 68 65 20 73 74 61 6e 64 61 72 64 0a 20 20 20 20 20 4e 53 20 61 64 ┆SPP uses the standard NS ad┆
0x0620…0640 64 72 65 73 73 20 66 6f 72 6d 61 74 73 2e 0a 0a 20 20 20 20 20 53 6f 63 6b 65 74 73 20 75 74 69 ┆dress formats. Sockets uti┆
0x0640…0660 6c 69 7a 69 6e 67 20 74 68 65 20 53 50 50 20 70 72 6f 74 6f 63 6f 6c 20 61 72 65 20 65 69 74 68 ┆lizing the SPP protocol are eith┆
0x0660…0680 65 72 20 22 61 63 74 69 76 65 22 20 6f 72 0a 20 20 20 20 20 22 70 61 73 73 69 76 65 22 2e 20 20 ┆er "active" or "passive". ┆
0x0680…06a0 41 63 74 69 76 65 20 73 6f 63 6b 65 74 73 20 69 6e 69 74 69 61 74 65 20 63 6f 6e 6e 65 63 74 69 ┆Active sockets initiate connecti┆
0x06a0…06c0 6f 6e 73 20 74 6f 20 70 61 73 73 69 76 65 0a 20 20 20 20 20 73 6f 63 6b 65 74 73 2e 20 20 42 79 ┆ons to passive sockets. By┆
0x06c0…06e0 20 64 65 66 61 75 6c 74 20 53 50 50 20 73 6f 63 6b 65 74 73 20 61 72 65 20 63 72 65 61 74 65 64 ┆ default SPP sockets are created┆
0x06e0…0700 20 61 63 74 69 76 65 3b 20 74 6f 0a 20 20 20 20 20 63 72 65 61 74 65 20 61 20 70 61 73 73 69 76 ┆ active; to create a passiv┆
0x0700…0720 65 20 73 6f 63 6b 65 74 20 74 68 65 20 5f 08 6c 5f 08 69 5f 08 73 5f 08 74 5f 08 65 5f 08 6e 20 ┆e socket the _ l_ i_ s_ t_ e_ n ┆
0x0720…0740 73 79 73 74 65 6d 20 63 61 6c 6c 20 6d 75 73 74 20 62 65 20 75 73 65 64 0a 20 20 20 20 20 61 66 ┆system call must be used af┆
0x0740…0760 74 65 72 20 62 69 6e 64 69 6e 67 20 74 68 65 20 73 6f 63 6b 65 74 20 77 69 74 68 20 74 68 65 20 ┆ter binding the socket with the ┆
0x0760…0780 5f 08 62 5f 08 69 5f 08 6e 5f 08 64 20 73 79 73 74 65 6d 20 63 61 6c 6c 2e 20 20 4f 6e 6c 79 0a ┆_ b_ i_ n_ d system call. Only ┆
0x0780…07a0 20 20 20 20 20 70 61 73 73 69 76 65 20 73 6f 63 6b 65 74 73 20 6d 61 79 20 75 73 65 20 74 68 65 ┆ passive sockets may use the┆
0x07a0…07c0 20 5f 08 61 5f 08 63 5f 08 63 5f 08 65 5f 08 70 5f 08 74 20 63 61 6c 6c 20 74 6f 20 61 63 63 65 ┆ _ a_ c_ c_ e_ p_ t call to acce┆
0x07c0…07e0 70 74 20 69 6e 63 6f 6d 69 6e 67 0a 20 20 20 20 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 2e 20 20 4f ┆pt incoming connections. O┆
0x07e0…0800 6e 6c 79 20 61 63 74 69 76 65 20 73 6f 63 6b 65 74 73 20 6d 61 79 20 75 73 65 20 74 68 65 20 5f ┆nly active sockets may use the _┆
0x0800…0820 08 63 5f 08 6f 5f 08 6e 5f 08 6e 5f 08 65 5f 08 63 5f 08 74 20 63 61 6c 6c 0a 20 20 20 20 20 74 ┆ c_ o_ n_ n_ e_ c_ t call t┆
0x0820…0840 6f 20 69 6e 69 74 69 61 74 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 2e 0a 0a 20 20 20 20 20 50 61 ┆o initiate connections. Pa┆
0x0840…0860 73 73 69 76 65 20 73 6f 63 6b 65 74 73 20 6d 61 79 20 22 75 6e 64 65 72 73 70 65 63 69 66 79 22 ┆ssive sockets may "underspecify"┆
0x0860…0880 20 74 68 65 69 72 20 6c 6f 63 61 74 69 6f 6e 20 74 6f 20 6d 61 74 63 68 0a 20 20 20 20 20 69 6e ┆ their location to match in┆
0x0880…08a0 63 6f 6d 69 6e 67 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 72 65 71 75 65 73 74 73 20 66 72 6f 6d 20 ┆coming connection requests from ┆
0x08a0…08c0 6d 75 6c 74 69 70 6c 65 20 6e 65 74 77 6f 72 6b 73 2e 20 20 54 68 69 73 0a 20 20 20 20 20 74 65 ┆multiple networks. This te┆
0x08c0…08e0 63 68 6e 69 71 75 65 2c 20 74 65 72 6d 65 64 20 22 77 69 6c 64 63 61 72 64 20 61 64 64 72 65 73 ┆chnique, termed "wildcard addres┆
0x08e0…0900 73 69 6e 67 22 2c 20 61 6c 6c 6f 77 73 20 61 20 73 69 6e 67 6c 65 0a 20 20 20 20 20 73 65 72 76 ┆sing", allows a single serv┆
0x0900…0920 65 72 20 74 6f 20 70 72 6f 76 69 64 65 20 73 65 72 76 69 63 65 20 74 6f 20 63 6c 69 65 6e 74 73 ┆er to provide service to clients┆
0x0920…0940 20 6f 6e 20 6d 75 6c 74 69 70 6c 65 20 6e 65 74 77 6f 72 6b 73 2e 0a 20 20 20 20 20 54 6f 20 63 ┆ on multiple networks. To c┆
0x0940…0960 72 65 61 74 65 20 61 20 73 6f 63 6b 65 74 20 77 68 69 63 68 20 6c 69 73 74 65 6e 73 20 6f 6e 20 ┆reate a socket which listens on ┆
0x0960…0980 61 6c 6c 20 6e 65 74 77 6f 72 6b 73 2c 20 74 68 65 20 4e 53 0a 20 20 20 20 20 61 64 64 72 65 73 ┆all networks, the NS addres┆
0x0980…09a0 73 20 6f 66 20 61 6c 6c 20 7a 65 72 6f 65 73 20 6d 75 73 74 20 62 65 20 62 6f 75 6e 64 2e 20 20 ┆s of all zeroes must be bound. ┆
0x09a0…09c0 54 68 65 20 53 50 50 20 70 6f 72 74 20 6d 61 79 20 73 74 69 6c 6c 0a 20 20 20 20 20 62 65 20 73 ┆The SPP port may still be s┆
0x09c0…09e0 70 65 63 69 66 69 65 64 20 61 74 20 74 68 69 73 20 74 69 6d 65 3b 20 69 66 20 74 68 65 20 70 6f ┆pecified at this time; if the po┆
0x09e0…0a00 72 74 20 69 73 20 6e 6f 74 20 73 70 65 63 69 66 69 65 64 20 74 68 65 0a 20 20 20 20 20 73 79 73 ┆rt is not specified the sys┆
0x0a00…0a20 74 65 6d 20 77 69 6c 6c 20 61 73 73 69 67 6e 20 6f 6e 65 2e 20 20 4f 6e 63 65 20 61 20 63 6f 6e ┆tem will assign one. Once a con┆
0x0a20…0a40 6e 65 63 74 69 6f 6e 20 68 61 73 20 62 65 65 6e 20 65 73 74 61 2d 0a 20 20 20 20 20 62 6c 69 73 ┆nection has been esta- blis┆
0x0a40…0a60 68 65 64 20 74 68 65 20 73 6f 63 6b 65 74 27 73 20 61 64 64 72 65 73 73 20 69 73 20 66 69 78 65 ┆hed the socket's address is fixe┆
0x0a60…0a80 64 20 62 79 20 74 68 65 20 70 65 65 72 20 65 6e 74 69 74 79 27 73 0a 20 20 20 20 20 6c 6f 63 61 ┆d by the peer entity's loca┆
0x0a80…0aa0 74 69 6f 6e 2e 20 20 20 54 68 65 20 61 64 64 72 65 73 73 20 61 73 73 69 67 6e 65 64 20 74 68 65 ┆tion. The address assigned the┆
0x0aa0…0ac0 20 73 6f 63 6b 65 74 20 69 73 20 74 68 65 20 61 64 64 72 65 73 73 0a 20 20 20 20 20 61 73 73 6f ┆ socket is the address asso┆
0x0ac0…0ae0 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 6e 65 74 77 6f 72 6b 20 69 6e 74 65 72 66 61 63 ┆ciated with the network interfac┆
0x0ae0…0b00 65 20 74 68 72 6f 75 67 68 20 77 68 69 63 68 20 70 61 63 6b 65 74 73 0a 20 20 20 20 20 61 72 65 ┆e through which packets are┆
0x0b00…0b20 20 62 65 69 6e 67 20 74 72 61 6e 73 6d 69 74 74 65 64 20 61 6e 64 20 72 65 63 65 69 76 65 64 2e ┆ being transmitted and received.┆
0x0b20…0b40 20 20 4e 6f 72 6d 61 6c 6c 79 20 74 68 69 73 20 61 64 64 72 65 73 73 0a 20 20 20 20 20 63 6f 72 ┆ Normally this address cor┆
0x0b40…0b60 72 65 73 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 70 65 65 72 20 65 6e 74 69 74 79 27 73 20 6e 65 ┆responds to the peer entity's ne┆
0x0b60…0b80 74 77 6f 72 6b 2e 0a 0a 20 20 20 20 20 49 66 20 74 68 65 20 53 4f 43 4b 5f 53 45 51 50 41 43 4b ┆twork. If the SOCK_SEQPACK┆
0x0b80…0ba0 45 54 20 73 6f 63 6b 65 74 20 74 79 70 65 20 69 73 20 73 70 65 63 69 66 69 65 64 2c 20 65 61 63 ┆ET socket type is specified, eac┆
0x0ba0…0bc0 68 20 70 61 63 6b 65 74 0a 20 20 20 20 20 72 65 63 65 69 76 65 64 20 68 61 73 20 74 68 65 20 61 ┆h packet received has the a┆
0x0bc0…0be0 63 74 75 61 6c 20 31 32 20 62 79 74 65 20 73 65 71 75 65 6e 63 65 64 20 70 61 63 6b 65 74 20 68 ┆ctual 12 byte sequenced packet h┆
0x0be0…0c00 65 61 64 65 72 20 6c 65 66 74 0a 20 20 20 20 20 66 6f 72 20 74 68 65 20 75 73 65 72 20 74 6f 20 ┆eader left for the user to ┆
0x0c00…0c20 69 6e 73 70 65 63 74 3a 0a 0a 20 20 20 20 20 73 74 72 75 63 74 20 73 70 68 64 72 20 7b 0a 20 20 ┆inspect: struct sphdr { ┆
0x0c20…0c40 20 20 20 20 20 20 20 20 20 20 20 20 75 5f 63 68 61 72 20 20 20 73 70 5f 63 63 3b 20 20 20 20 20 ┆ u_char sp_cc; ┆
0x0c40…0c60 20 2f 2a 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 63 6f 6e 74 72 6f 6c 20 2a 2f 0a 20 20 20 20 20 23 ┆ /* connection control */ #┆
0x0c60…0c80 64 65 66 69 6e 65 20 20 53 50 5f 45 4d 20 20 20 20 30 78 31 30 20 20 20 20 20 20 20 20 2f 2a 20 ┆define SP_EM 0x10 /* ┆
0x0c80…0ca0 65 6e 64 20 6f 66 20 6d 65 73 73 61 67 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆end of message */ ┆
0x0ca0…0cc0 75 5f 63 68 61 72 20 20 20 73 70 5f 64 74 3b 20 20 20 20 20 20 2f 2a 20 64 61 74 61 73 74 72 65 ┆u_char sp_dt; /* datastre┆
0x0cc0…0ce0 61 6d 20 74 79 70 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 5f 73 68 6f 72 74 ┆am type */ u_short┆
0x0ce0…0d00 20 20 73 70 5f 73 69 64 3b 20 20 20 20 20 2f 2a 20 73 6f 75 72 63 65 20 63 6f 6e 6e 65 63 74 69 ┆ sp_sid; /* source connecti┆
0x0d00…0d20 6f 6e 20 69 64 2e 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 5f 73 68 6f 72 74 20 ┆on id. */ u_short ┆
0x0d20…0d40 20 73 70 5f 64 69 64 3b 20 20 20 20 20 2f 2a 20 64 65 73 74 2e 20 63 6f 6e 6e 65 63 74 69 6f 6e ┆ sp_did; /* dest. connection┆
0x0d40…0d60 20 69 64 2e 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 5f 73 68 6f 72 74 20 20 73 ┆ id. */ u_short s┆
0x0d60…0d80 70 5f 73 65 71 3b 20 20 20 20 20 2f 2a 20 73 65 71 75 65 6e 63 65 20 6e 75 6d 62 65 72 20 2a 2f ┆p_seq; /* sequence number */┆
0x0d80…0da0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 5f 73 68 6f 72 74 20 20 73 70 5f 61 63 6b 3b 20 ┆ u_short sp_ack; ┆
0x0da0…0dc0 20 20 20 20 2f 2a 20 61 63 6b 6e 6f 77 6c 65 64 67 65 20 6e 75 6d 62 65 72 20 2a 2f 0a 20 20 20 ┆ /* acknowledge number */ ┆
0x0dc0…0de0 20 20 20 20 20 20 20 20 20 20 20 75 5f 73 68 6f 72 74 20 20 73 70 5f 61 6c 6f 3b 20 20 20 20 20 ┆ u_short sp_alo; ┆
0x0de0…0e00 2f 2a 20 61 6c 6c 6f 63 61 74 69 6f 6e 20 6e 75 6d 62 65 72 20 2a 2f 0a 20 20 20 20 20 7d 3b 0a ┆/* allocation number */ }; ┆
0x0e00…0e20 0a 20 20 20 20 20 54 68 69 73 20 66 61 63 69 6c 69 74 61 74 65 73 20 74 68 65 20 69 6d 70 6c 65 ┆ This facilitates the imple┆
0x0e20…0e40 6d 65 6e 74 61 74 69 6f 6e 20 6f 66 20 68 69 67 68 65 72 20 6c 65 76 65 6c 20 58 65 72 6f 78 0a ┆mentation of higher level Xerox ┆
0x0e40…0e60 20 20 20 20 20 70 72 6f 74 6f 63 6f 6c 73 20 77 68 69 63 68 20 6d 61 6b 65 20 75 73 65 20 6f 66 ┆ protocols which make use of┆
0x0e60…0e80 20 74 68 65 20 64 61 74 61 20 73 74 72 65 61 6d 20 74 79 70 65 20 66 69 65 6c 64 20 61 6e 64 0a ┆ the data stream type field and ┆
0x0e80…0ea0 20 20 20 20 20 74 68 65 20 65 6e 64 20 6f 66 20 6d 65 73 73 61 67 65 20 62 69 74 2e 20 20 43 6f ┆ the end of message bit. Co┆
0x0ea0…0ec0 6e 76 65 72 73 65 6c 79 2c 20 74 68 65 20 75 73 65 72 20 69 73 20 72 65 71 75 69 72 65 64 20 74 ┆nversely, the user is required t┆
0x0ec0…0ee0 6f 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 73 75 70 70 6c 79 20 61 20 31 32 20 62 79 74 65 20 68 65 ┆o supply a 12 byte he┆
0x0ee0…0f00 61 64 65 72 2c 20 74 68 65 20 6f 6e 6c 79 20 70 61 72 74 20 6f 66 20 77 68 69 63 68 20 69 6e 73 ┆ader, the only part of which ins┆
0x0f00…0f20 70 65 63 74 65 64 20 69 73 0a 20 20 20 20 20 74 68 65 20 64 61 74 61 20 73 74 72 65 61 6d 20 74 ┆pected is the data stream t┆
0x0f20…0f40 79 70 65 20 61 6e 64 20 65 6e 64 20 6f 66 20 6d 65 73 73 61 67 65 20 66 69 65 6c 64 73 2e 0a 0a ┆ype and end of message fields. ┆
0x0f40…0f60 20 20 20 20 20 46 6f 72 20 65 69 74 68 65 72 20 73 6f 63 6b 65 74 20 74 79 70 65 2c 20 70 61 63 ┆ For either socket type, pac┆
0x0f60…0f80 6b 65 74 73 20 72 65 63 65 69 76 65 64 20 77 69 74 68 20 74 68 65 20 41 74 74 65 6e 74 69 6f 6e ┆kets received with the Attention┆
0x0f80…0fa0 0a 20 20 20 20 20 62 69 74 20 73 65 74 20 61 72 65 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 ┆ bit set are interpreted as┆
0x0fa0…0fc0 20 6f 75 74 20 6f 66 20 62 61 6e 64 20 64 61 74 61 2e 20 20 44 61 74 61 20 73 65 6e 74 20 77 69 ┆ out of band data. Data sent wi┆
0x0fc0…0fe0 74 68 0a 20 20 20 20 20 73 65 6e 64 28 2e 2e 2e 2c 20 2e 2e 2e 2c 20 2e 2e 2e 2c 20 4d 53 47 5f ┆th send(..., ..., ..., MSG_┆
0x0fe0…1000 4f 4f 42 29 20 63 61 75 73 65 20 74 68 65 20 61 74 74 65 6e 74 69 6f 6e 20 62 69 74 20 74 6f 20 ┆OOB) cause the attention bit to ┆
0x1000…1020 62 65 0a 20 20 20 20 20 73 65 74 2e 0a 0a 20 20 20 20 20 53 08 53 08 53 08 53 6f 08 6f 08 6f 08 ┆be set. S S S So o o ┆
0x1020…1040 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 74 08 74 08 74 08 74 20 4f 08 ┆oc c c ck k k ke e e et t t t O ┆
0x1040…1060 4f 08 4f 08 4f 70 08 70 08 70 08 70 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 ┆O O Op p p pt t t ti i i io o o ┆
0x1060…1080 6f 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 0a 20 20 20 20 20 4f 70 74 69 6f 6e 73 20 61 72 65 ┆on n n ns s s s Options are┆
0x1080…10a0 20 73 65 74 20 77 69 74 68 20 5f 08 73 5f 08 65 5f 08 74 5f 08 73 5f 08 6f 5f 08 63 5f 08 6b 5f ┆ set with _ s_ e_ t_ s_ o_ c_ k_┆
0x10a0…10c0 08 6f 5f 08 70 5f 08 74 20 61 6e 64 20 65 78 61 6d 69 6e 65 64 20 77 69 74 68 20 5f 08 67 5f 08 ┆ o_ p_ t and examined with _ g_ ┆
0x10c0…10e0 65 5f 08 74 5f 08 2d 0a 20 20 20 20 20 5f 08 73 5f 08 6f 5f 08 63 5f 08 6b 5f 08 6f 5f 08 70 5f ┆e_ t_ - _ s_ o_ c_ k_ o_ p_┆
0x10e0…1100 08 74 2e 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6f 70 74 69 6f 6e 73 20 61 72 65 20 73 ┆ t. The following options are s┆
0x1100…1120 75 70 70 6f 72 74 65 64 2e 0a 0a 20 20 20 20 20 53 4f 5f 44 45 46 41 55 4c 54 5f 48 45 41 44 45 ┆upported. SO_DEFAULT_HEADE┆
0x1120…1140 52 53 0a 20 20 20 20 20 20 20 20 20 20 77 68 65 6e 20 73 65 74 2c 20 74 68 69 73 20 64 65 74 65 ┆RS when set, this dete┆
0x1140…1160 72 6d 69 6e 65 73 20 74 68 65 20 64 61 74 61 20 73 74 72 65 61 6d 20 74 79 70 65 20 61 6e 64 0a ┆rmines the data stream type and ┆
0x1160…1180 20 20 20 20 20 20 20 20 20 20 77 68 65 74 68 65 72 20 74 68 65 20 65 6e 64 20 6f 66 20 6d 65 73 ┆ whether the end of mes┆
0x1180…11a0 73 61 67 65 20 62 69 74 20 69 73 20 74 6f 20 62 65 20 73 65 74 20 6f 6e 20 65 76 65 72 79 0a 20 ┆sage bit is to be set on every ┆
0x11a0…11c0 20 20 20 20 20 20 20 20 20 65 6e 73 75 69 6e 67 20 70 61 63 6b 65 74 2e 0a 0a 20 20 20 20 20 53 ┆ ensuing packet. S┆
0x11c0…11e0 4f 5f 4d 54 55 0a 20 20 20 20 20 20 20 20 20 20 54 68 69 73 20 73 70 65 63 69 66 69 65 73 20 74 ┆O_MTU This specifies t┆
0x11e0…1200 68 65 20 6d 61 78 69 6d 75 6d 20 61 6d 6d 6f 75 6e 74 20 6f 66 20 75 73 65 72 20 64 61 74 61 20 ┆he maximum ammount of user data ┆
0x1200…1220 69 6e 20 61 0a 20 20 20 20 20 20 20 20 20 20 73 69 6e 67 6c 65 20 70 61 63 6b 65 74 2e 20 20 54 ┆in a single packet. T┆
0x1220…1240 68 65 20 64 65 66 61 75 6c 74 20 69 73 20 35 37 36 20 62 79 74 65 73 20 2d 0a 20 20 20 20 20 20 ┆he default is 576 bytes - ┆
0x1240…1260 20 20 20 20 73 69 7a 65 6f 66 28 73 74 72 75 63 74 20 73 70 69 64 70 29 2e 20 20 54 68 69 73 20 ┆ sizeof(struct spidp). This ┆
0x1260…1280 71 75 61 6e 74 69 74 79 20 61 66 66 65 63 74 73 20 77 69 6e 64 6f 77 69 6e 67 0a 20 20 20 20 20 ┆quantity affects windowing ┆
0x1280…12a0 20 20 20 20 20 2d 2d 20 69 6e 63 72 65 61 73 69 6e 67 20 69 74 20 77 69 74 68 6f 75 74 20 69 6e ┆ -- increasing it without in┆
0x12a0…12c0 63 72 65 61 73 69 6e 67 20 74 68 65 20 61 6d 6f 75 6e 74 20 6f 66 0a 20 20 20 20 20 20 20 20 20 ┆creasing the amount of ┆
0x12c0…12e0 20 62 75 66 66 65 72 69 6e 67 20 69 6e 20 74 68 65 20 73 6f 63 6b 65 74 20 77 69 6c 6c 20 6c 6f ┆ buffering in the socket will lo┆
0x12e0…1300 77 65 72 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 75 6e 72 65 61 64 0a 20 20 20 20 20 20 20 ┆wer the number of unread ┆
0x1300…1320 20 20 20 70 61 63 6b 65 74 73 20 61 63 63 65 70 74 65 64 2e 20 20 41 6e 79 74 68 69 6e 67 20 6c ┆ packets accepted. Anything l┆
0x1320…1340 61 72 67 65 72 20 74 68 61 6e 20 74 68 65 20 64 65 66 61 75 6c 74 0a 20 20 20 20 20 20 20 20 20 ┆arger than the default ┆
0x1340…1360 20 77 69 6c 6c 20 6e 6f 74 20 62 65 20 66 6f 72 77 61 72 64 65 64 20 62 79 20 61 20 62 6f 6e 61 ┆ will not be forwarded by a bona┆
0x1360…1380 20 66 69 64 65 20 58 45 52 4f 58 20 70 72 6f 64 75 63 74 0a 20 20 20 20 20 20 20 20 20 20 69 6e ┆ fide XEROX product in┆
0x1380…13a0 74 65 72 6e 65 74 77 6f 72 6b 20 72 6f 75 74 65 72 2e 20 20 54 68 65 20 64 61 74 61 20 61 72 67 ┆ternetwork router. The data arg┆
0x13a0…13c0 75 6d 65 6e 74 20 66 6f 72 20 74 68 65 20 73 65 74 2d 0a 20 20 20 20 20 20 20 20 20 20 73 6f 63 ┆ument for the set- soc┆
0x13c0…13e0 6b 6f 70 74 20 63 61 6c 6c 20 6d 75 73 74 20 62 65 20 61 6e 20 75 6e 73 69 67 6e 65 64 20 73 68 ┆kopt call must be an unsigned sh┆
0x13e0…1400 6f 72 74 2e 0a 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47 ┆ort. D D D DI I I IA A A AG G G┆
0x1400…1420 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08 ┆ GN N N NO O O OS S S ST T T TI ┆
0x1420…1440 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53 08 53 08 53 0a 20 20 20 20 20 41 20 73 6f 63 6b 65 ┆I I IC C C CS S S S A socke┆
0x1440…1460 74 20 6f 70 65 72 61 74 69 6f 6e 20 6d 61 79 20 66 61 69 6c 20 77 69 74 68 20 6f 6e 65 20 6f 66 ┆t operation may fail with one of┆
0x1460…1480 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 72 72 6f 72 73 0a 20 20 20 20 20 72 65 74 75 72 ┆ the following errors retur┆
0x1480…14a0 6e 65 64 3a 0a 0a 20 20 20 20 20 5b 45 49 53 43 4f 4e 4e 5d 20 20 20 20 20 20 20 77 68 65 6e 20 ┆ned: [EISCONN] when ┆
0x14a0…14c0 74 72 79 69 6e 67 20 74 6f 20 65 73 74 61 62 6c 69 73 68 20 61 20 63 6f 6e 6e 65 63 74 69 6f 6e ┆trying to establish a connection┆
0x14c0…14e0 20 6f 6e 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 6f 63 6b 65 ┆ on a socke┆
0x14e0…1500 74 20 77 68 69 63 68 20 61 6c 72 65 61 64 79 20 68 61 73 20 6f 6e 65 3b 0a 0a 20 20 20 20 20 5b ┆t which already has one; [┆
0x1500…1520 45 4e 4f 42 55 46 53 5d 20 20 20 20 20 20 20 77 68 65 6e 20 74 68 65 20 73 79 73 74 65 6d 20 72 ┆ENOBUFS] when the system r┆
0x1520…1540 75 6e 73 20 6f 75 74 20 6f 66 20 6d 65 6d 6f 72 79 20 66 6f 72 20 61 6e 0a 20 20 20 20 20 20 20 ┆uns out of memory for an ┆
0x1540…1560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 64 61 74 61 20 73 74 72 75 ┆ internal data stru┆
0x1560…1580 63 74 75 72 65 3b 0a 0a 20 20 20 20 20 5b 45 54 49 4d 45 44 4f 55 54 5d 20 20 20 20 20 77 68 65 ┆cture; [ETIMEDOUT] whe┆
0x1580…15a0 6e 20 61 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 77 61 73 20 64 72 6f 70 70 65 64 20 64 75 65 20 74 ┆n a connection was dropped due t┆
0x15a0…15c0 6f 20 65 78 63 65 73 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 69 ┆o exces- si┆
0x15c0…15e0 76 65 20 72 65 74 72 61 6e 73 6d 69 73 73 69 6f 6e 73 3b 0a 0a 20 20 20 20 20 5b 45 43 4f 4e 4e ┆ve retransmissions; [ECONN┆
0x15e0…1600 52 45 53 45 54 5d 20 20 20 20 77 68 65 6e 20 74 68 65 20 72 65 6d 6f 74 65 20 70 65 65 72 20 66 ┆RESET] when the remote peer f┆
0x1600…1620 6f 72 63 65 73 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 ┆orces the connection ┆
0x1620…1640 20 20 20 20 20 20 20 20 20 20 74 6f 20 62 65 20 63 6c 6f 73 65 64 3b 0a 0a 20 20 20 20 20 5b 45 ┆ to be closed; [E┆
0x1640…1660 43 4f 4e 4e 52 45 46 55 53 45 44 5d 20 20 77 68 65 6e 20 74 68 65 20 72 65 6d 6f 74 65 20 70 65 ┆CONNREFUSED] when the remote pe┆
0x1660…1680 65 72 20 61 63 74 69 76 65 6c 79 20 72 65 66 75 73 65 73 20 63 6f 6e 2d 0a 20 20 20 20 20 20 20 ┆er actively refuses con- ┆
0x1680…16a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 63 74 69 6f 6e 20 65 73 74 61 62 6c 69 73 68 6d ┆ nection establishm┆
0x16a0…16c0 65 6e 74 20 28 75 73 75 61 6c 6c 79 20 62 65 63 61 75 73 65 20 6e 6f 0a 20 20 20 20 20 20 20 20 ┆ent (usually because no ┆
0x16c0…16e0 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 63 65 73 73 20 69 73 20 6c 69 73 74 65 6e 69 6e ┆ process is listenin┆
0x16e0…1700 67 20 74 6f 20 74 68 65 20 70 6f 72 74 29 3b 0a 0a 20 20 20 20 20 5b 45 41 44 44 52 49 4e 55 53 ┆g to the port); [EADDRINUS┆
0x1700…1720 45 5d 20 20 20 20 77 68 65 6e 20 61 6e 20 61 74 74 65 6d 70 74 20 69 73 20 6d 61 64 65 20 74 6f ┆E] when an attempt is made to┆
0x1720…1740 20 63 72 65 61 74 65 20 61 20 73 6f 63 6b 65 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ create a socket ┆
0x1740…1760 20 20 20 20 20 20 77 69 74 68 20 61 20 70 6f 72 74 20 77 68 69 63 68 20 68 61 73 20 61 6c 72 65 ┆ with a port which has alre┆
0x1760…1780 61 64 79 20 62 65 65 6e 20 61 6c 6c 6f 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ady been allo- ┆
0x1780…17a0 20 20 20 20 63 61 74 65 64 3b 0a 0a 20 20 20 20 20 5b 45 41 44 44 52 4e 4f 54 41 56 41 49 4c 5d ┆ cated; [EADDRNOTAVAIL]┆
0x17a0…17c0 20 77 68 65 6e 20 61 6e 20 61 74 74 65 6d 70 74 20 69 73 20 6d 61 64 65 20 74 6f 20 63 72 65 61 ┆ when an attempt is made to crea┆
0x17c0…17e0 74 65 20 61 20 73 6f 63 6b 65 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆te a socket ┆
0x17e0…1800 20 77 69 74 68 20 61 20 6e 65 74 77 6f 72 6b 20 61 64 64 72 65 73 73 20 66 6f 72 20 77 68 69 63 ┆ with a network address for whic┆
0x1800…1820 68 20 6e 6f 20 6e 65 74 77 6f 72 6b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆h no network ┆
0x1820…1840 20 20 69 6e 74 65 72 66 61 63 65 20 65 78 69 73 74 73 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 ┆ interface exists. S S S SE E ┆
0x1840…1860 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 ┆E EE E E E A A A AL L L LS S S S┆
0x1860…1880 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 ┆O O O O System Calls (2): ┆
0x1880…18a0 67 65 74 73 6f 63 6b 6f 70 74 2c 20 73 65 6e 64 2c 20 72 65 63 76 0a 20 20 20 20 20 44 65 76 69 ┆getsockopt, send, recv Devi┆
0x18a0…18c0 63 65 73 20 61 6e 64 20 46 61 63 69 6c 69 74 69 65 73 20 28 34 29 3a 20 20 69 6e 74 72 6f 28 34 ┆ces and Facilities (4): intro(4┆
0x18c0…18e0 6e 29 2c 20 6e 73 0a 0a 0a 0a 0a 0a 0a 0a 42 08 42 08 42 08 42 55 08 55 08 55 08 55 47 08 47 08 ┆n), ns B B B BU U U UG G ┆
0x18e0…1900 47 08 47 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 72 65 20 73 68 6f 75 6c 64 20 62 65 20 ┆G GS S S S There should be ┆
0x1900…1920 73 6f 6d 65 20 77 61 79 20 74 6f 20 72 65 66 6c 65 63 74 20 72 65 63 6f 72 64 20 62 6f 75 6e 64 ┆some way to reflect record bound┆
[…truncated at 200 lines…]