|
|
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: r
Length: 5969 (0x1751)
Names: »recv.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat2/recv.2«
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 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c ┆ u_ a_ l System Call┆
0x0040…0060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 76 28 32 29 0a 0a 0a 0a ┆s recv(2) ┆
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 72 65 63 76 2c 20 72 65 63 76 66 72 6f 6d 2c 20 72 65 63 76 6d 73 67 20 2d 20 72 65 63 65 ┆ recv, recvfrom, recvmsg - rece┆
0x00a0…00c0 69 76 65 20 61 20 6d 65 73 73 61 67 65 20 66 72 6f 6d 20 61 20 73 6f 63 6b 65 74 0a 0a 53 08 53 ┆ive a message from a socket S S┆
0x00c0…00e0 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 ┆ S SY Y Y YN N N NT T T TA A A A┆
0x00e0…0100 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e ┆X X X X # # # #i i i in n n┆
0x0100…0120 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 08 64 08 64 65 08 ┆ nc c c cl l l lu u u ud d d de ┆
0x0120…0140 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 79 73 08 73 08 73 ┆e e e < < < <s s s sy y y ys s s┆
0x0140…0160 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 ┆ s/ / / /t t t ty y y yp p p pe ┆
0x0160…0180 65 08 65 08 65 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 ┆e e es s s s. . . .h h h h> > > ┆
0x0180…01a0 3e 0a 20 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 ┆> # # # #i i i in n n nc c ┆
0x01a0…01c0 63 08 63 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 ┆c cl l l lu u u ud d d de e e e ┆
0x01c0…01e0 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 ┆< < < <s s s sy y y ys s s s/ / ┆
0x01e0…0200 2f 08 2f 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 6b 08 6b 65 ┆/ /s s s so o o oc c c ck k k ke┆
0x0200…0220 08 65 08 65 08 65 74 08 74 08 74 08 74 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e ┆ e e et t t t. . . .h h h h> > >┆
0x0220…0240 08 3e 0a 0a 20 20 20 20 20 63 08 63 08 63 08 63 63 08 63 08 63 08 63 20 3d 08 3d 08 3d 08 3d 20 ┆ > c c c cc c c c = = = = ┆
0x0240…0260 72 08 72 08 72 08 72 65 08 65 08 65 08 65 63 08 63 08 63 08 63 76 08 76 08 76 08 76 28 08 28 08 ┆r r r re e e ec c c cv v v v( ( ┆
0x0260…0280 28 08 28 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 62 08 62 08 62 08 62 75 08 75 08 75 08 75 ┆( (s s s s, , , , b b b bu u u u┆
0x0280…02a0 66 08 66 08 66 08 66 2c 08 2c 08 2c 08 2c 20 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e ┆f f f f, , , , l l l le e e en n┆
0x02a0…02c0 08 6e 08 6e 2c 08 2c 08 2c 08 2c 20 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08 ┆ n n, , , , f f f fl l l la a a ┆
0x02c0…02e0 61 67 08 67 08 67 08 67 73 08 73 08 73 08 73 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 ┆ag g g gs s s s) ) ) ) i i ┆
0x02e0…0300 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 63 08 63 08 63 08 63 63 08 63 08 63 08 63 ┆i in n n nt t t t c c c cc c c c┆
0x0300…0320 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 ┆, , , , s s s s; ; ; ; c c ┆
0x0320…0340 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a ┆c ch h h ha a a ar r r r * * * *┆
0x0340…0360 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 3b 08 3b 08 3b 08 3b 0a 20 20 20 ┆b b b bu u u uf f f f; ; ; ; ┆
0x0360…0380 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 6c 08 6c 08 6c 08 6c 65 ┆ i i i in n n nt t t t l l l le┆
0x0380…03a0 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 2c 08 2c 08 2c 08 2c 20 66 08 66 08 66 08 66 6c 08 6c 08 ┆ e e en n n n, , , , f f f fl l ┆
0x03a0…03c0 6c 08 6c 61 08 61 08 61 08 61 67 08 67 08 67 08 67 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a ┆l la a a ag g g gs s s s; ; ; ; ┆
0x03c0…03e0 0a 20 20 20 20 20 63 08 63 08 63 08 63 63 08 63 08 63 08 63 20 3d 08 3d 08 3d 08 3d 20 72 08 72 ┆ c c c cc c c c = = = = r r┆
0x03e0…0400 08 72 08 72 65 08 65 08 65 08 65 63 08 63 08 63 08 63 76 08 76 08 76 08 76 66 08 66 08 66 08 66 ┆ r re e e ec c c cv v v vf f f f┆
0x0400…0420 72 08 72 08 72 08 72 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 28 08 28 08 28 08 28 73 08 73 08 ┆r r r ro o o om m m m( ( ( (s s ┆
0x0420…0440 73 08 73 2c 08 2c 08 2c 08 2c 20 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 ┆s s, , , , b b b bu u u uf f f f┆
0x0440…0460 2c 08 2c 08 2c 08 2c 20 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 2c 08 2c ┆, , , , l l l le e e en n n n, ,┆
0x0460…0480 08 2c 08 2c 20 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08 61 67 08 67 08 67 08 ┆ , , f f f fl l l la a a ag g g ┆
0x0480…04a0 67 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 66 08 66 08 66 08 66 72 08 72 08 72 08 72 6f 08 ┆gs s s s, , , , f f f fr r r ro ┆
0x04a0…04c0 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 2c 08 2c 08 2c 08 2c 20 66 08 66 08 66 08 66 72 08 72 08 72 ┆o o om m m m, , , , f f f fr r r┆
0x04c0…04e0 08 72 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 ┆ ro o o om m m ml l l le e e en ┆
0x04e0…0500 6e 08 6e 08 6e 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e ┆n n n) ) ) ) i i i in n n n┆
0x0500…0520 74 08 74 08 74 08 74 20 63 08 63 08 63 08 63 63 08 63 08 63 08 63 2c 08 2c 08 2c 08 2c 20 73 08 ┆t t t t c c c cc c c c, , , , s ┆
0x0520…0540 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 ┆s s s; ; ; ; c c c ch h h h┆
0x0540…0560 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 62 08 62 08 62 08 62 75 08 75 ┆a a a ar r r r * * * *b b b bu u┆
0x0560…0580 08 75 08 75 66 08 66 08 66 08 66 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e ┆ u uf f f f; ; ; ; i i i in┆
0x0580…05a0 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e 08 ┆ n n nt t t t l l l le e e en n ┆
0x05a0…05c0 6e 08 6e 2c 08 2c 08 2c 08 2c 20 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08 61 ┆n n, , , , f f f fl l l la a a a┆
0x05c0…05e0 67 08 67 08 67 08 67 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 73 08 73 08 73 ┆g g g gs s s s; ; ; ; s s s┆
0x05e0…0600 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 ┆ st t t tr r r ru u u uc c c ct ┆
0x0600…0620 74 08 74 08 74 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 6b ┆t t t s s s so o o oc c c ck k k┆
0x0620…0640 08 6b 61 08 61 08 61 08 61 64 08 64 08 64 08 64 64 08 64 08 64 08 64 72 08 72 08 72 08 72 20 2a ┆ ka a a ad d d dd d d dr r r r *┆
0x0640…0660 08 2a 08 2a 08 2a 66 08 66 08 66 08 66 72 08 72 08 72 08 72 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d ┆ * * *f f f fr r r ro o o om m m┆
0x0660…0680 08 6d 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 ┆ m; ; ; ; i i i in n n nt t┆
0x0680…06a0 08 74 08 74 20 2a 08 2a 08 2a 08 2a 66 08 66 08 66 08 66 72 08 72 08 72 08 72 6f 08 6f 08 6f 08 ┆ t t * * * *f f f fr r r ro o o ┆
0x06a0…06c0 6f 6d 08 6d 08 6d 08 6d 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 3b 08 3b ┆om m m ml l l le e e en n n n; ;┆
0x06c0…06e0 08 3b 08 3b 0a 0a 20 20 20 20 20 63 08 63 08 63 08 63 63 08 63 08 63 08 63 20 3d 08 3d 08 3d 08 ┆ ; ; c c c cc c c c = = = ┆
0x06e0…0700 3d 20 72 08 72 08 72 08 72 65 08 65 08 65 08 65 63 08 63 08 63 08 63 76 08 76 08 76 08 76 6d 08 ┆= r r r re e e ec c c cv v v vm ┆
0x0700…0720 6d 08 6d 08 6d 73 08 73 08 73 08 73 67 08 67 08 67 08 67 28 08 28 08 28 08 28 73 08 73 08 73 08 ┆m m ms s s sg g g g( ( ( (s s s ┆
0x0720…0740 73 2c 08 2c 08 2c 08 2c 20 6d 08 6d 08 6d 08 6d 73 08 73 08 73 08 73 67 08 67 08 67 08 67 2c 08 ┆s, , , , m m m ms s s sg g g g, ┆
0x0740…0760 2c 08 2c 08 2c 20 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08 61 67 08 67 08 67 ┆, , , f f f fl l l la a a ag g g┆
0x0760…0780 08 67 73 08 73 08 73 08 73 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e ┆ gs s s s) ) ) ) i i i in n┆
0x0780…07a0 08 6e 08 6e 74 08 74 08 74 08 74 20 63 08 63 08 63 08 63 63 08 63 08 63 08 63 2c 08 2c 08 2c 08 ┆ n nt t t t c c c cc c c c, , , ┆
0x07a0…07c0 2c 20 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 ┆, s s s s; ; ; ; s s s st t┆
0x07c0…07e0 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 ┆ t tr r r ru u u uc c c ct t t t┆
0x07e0…0800 20 6d 08 6d 08 6d 08 6d 73 08 73 08 73 08 73 67 08 67 08 67 08 67 68 08 68 08 68 08 68 64 08 64 ┆ m m m ms s s sg g g gh h h hd d┆
0x0800…0820 08 64 08 64 72 08 72 08 72 08 72 20 6d 08 6d 08 6d 08 6d 73 08 73 08 73 08 73 67 08 67 08 67 08 ┆ d dr r r r m m m ms s s sg g g ┆
0x0820…0840 67 5b 08 5b 08 5b 08 5b 5d 08 5d 08 5d 08 5d 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69 08 ┆g[ [ [ [] ] ] ]; ; ; ; i i ┆
0x0840…0860 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c ┆i in n n nt t t t f f f fl l l l┆
0x0860…0880 61 08 61 08 61 08 61 67 08 67 08 67 08 67 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 0a 44 08 ┆a a a ag g g gs s s s; ; ; ; D ┆
0x0880…08a0 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 52 08 52 08 52 08 ┆D D DE E E ES S S SC C C CR R R ┆
0x08a0…08c0 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 49 08 49 4f 08 4f ┆RI I I IP P P PT T T TI I I IO O┆
0x08c0…08e0 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 72 5f 08 65 5f 08 63 5f 08 76 2c 20 5f ┆ O ON N N N _ r_ e_ c_ v, _┆
0x08e0…0900 08 72 5f 08 65 5f 08 63 5f 08 76 5f 08 66 5f 08 72 5f 08 6f 5f 08 6d 2c 20 61 6e 64 20 5f 08 72 ┆ r_ e_ c_ v_ f_ r_ o_ m, and _ r┆
0x0900…0920 5f 08 65 5f 08 63 5f 08 76 5f 08 6d 5f 08 73 5f 08 67 20 61 72 65 20 75 73 65 64 20 28 69 6e 20 ┆_ e_ c_ v_ m_ s_ g are used (in ┆
0x0920…0940 61 64 64 69 74 69 6f 6e 20 74 6f 20 5f 08 72 5f 08 65 5f 08 61 5f 08 64 29 0a 20 20 20 20 20 74 ┆addition to _ r_ e_ a_ d) t┆
0x0940…0960 6f 20 72 65 63 65 69 76 65 20 6d 65 73 73 61 67 65 73 20 66 72 6f 6d 20 61 20 73 6f 63 6b 65 74 ┆o receive messages from a socket┆
0x0960…0980 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 72 5f 08 65 5f 08 63 5f 08 76 20 63 61 6c 6c 20 6d 61 ┆. The _ r_ e_ c_ v call ma┆
0x0980…09a0 79 20 62 65 20 75 73 65 64 20 6f 6e 6c 79 20 6f 6e 20 61 20 5f 08 63 5f 08 6f 5f 08 6e 5f 08 6e ┆y be used only on a _ c_ o_ n_ n┆
0x09a0…09c0 5f 08 65 5f 08 63 5f 08 74 5f 08 65 5f 08 64 20 73 6f 63 6b 65 74 20 28 73 65 65 0a 20 20 20 20 ┆_ e_ c_ t_ e_ d socket (see ┆
0x09c0…09e0 20 5f 08 63 5f 08 6f 5f 08 6e 5f 08 6e 5f 08 65 5f 08 63 5f 08 74 28 32 29 29 2c 20 77 68 69 6c ┆ _ c_ o_ n_ n_ e_ c_ t(2)), whil┆
0x09e0…0a00 65 20 5f 08 72 5f 08 65 5f 08 63 5f 08 76 5f 08 66 5f 08 72 5f 08 6f 5f 08 6d 20 61 6e 64 20 5f ┆e _ r_ e_ c_ v_ f_ r_ o_ m and _┆
0x0a00…0a20 08 72 5f 08 65 5f 08 63 5f 08 76 5f 08 6d 5f 08 73 5f 08 67 20 6d 61 79 20 62 65 20 75 73 65 64 ┆ r_ e_ c_ v_ m_ s_ g may be used┆
0x0a20…0a40 20 74 6f 0a 20 20 20 20 20 72 65 63 65 69 76 65 20 64 61 74 61 20 6f 6e 20 61 20 73 6f 63 6b 65 ┆ to receive data on a socke┆
0x0a40…0a60 74 20 77 68 65 74 68 65 72 20 69 74 20 69 73 20 69 6e 20 61 20 63 6f 6e 6e 65 63 74 65 64 20 73 ┆t whether it is in a connected s┆
0x0a60…0a80 74 61 74 65 0a 20 20 20 20 20 6f 72 20 6e 6f 74 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 66 5f 08 ┆tate or not. If _ f_ ┆
0x0a80…0aa0 72 5f 08 6f 5f 08 6d 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 74 68 65 20 73 6f 75 72 63 65 20 ┆r_ o_ m is non-zero, the source ┆
0x0aa0…0ac0 61 64 64 72 65 73 73 20 6f 66 20 74 68 65 20 6d 65 73 73 61 67 65 20 69 73 0a 20 20 20 20 20 66 ┆address of the message is f┆
0x0ac0…0ae0 69 6c 6c 65 64 20 69 6e 2e 20 20 5f 08 46 5f 08 72 5f 08 6f 5f 08 6d 5f 08 6c 5f 08 65 5f 08 6e ┆illed in. _ F_ r_ o_ m_ l_ e_ n┆
0x0ae0…0b00 20 69 73 20 61 20 76 61 6c 75 65 2d 72 65 73 75 6c 74 20 70 61 72 61 6d 65 74 65 72 2c 20 69 6e ┆ is a value-result parameter, in┆
0x0b00…0b20 69 74 69 61 6c 69 7a 65 64 0a 20 20 20 20 20 74 6f 20 74 68 65 20 73 69 7a 65 20 6f 66 20 74 68 ┆itialized to the size of th┆
0x0b20…0b40 65 20 62 75 66 66 65 72 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 5f 08 66 5f 08 72 5f ┆e buffer associated with _ f_ r_┆
0x0b40…0b60 08 6f 5f 08 6d 2c 20 61 6e 64 20 6d 6f 64 69 66 69 65 64 0a 20 20 20 20 20 6f 6e 20 72 65 74 75 ┆ o_ m, and modified on retu┆
0x0b60…0b80 72 6e 20 74 6f 20 69 6e 64 69 63 61 74 65 20 74 68 65 20 61 63 74 75 61 6c 20 73 69 7a 65 20 6f ┆rn to indicate the actual size o┆
0x0b80…0ba0 66 20 74 68 65 20 61 64 64 72 65 73 73 20 73 74 6f 72 65 64 0a 20 20 20 20 20 74 68 65 72 65 2e ┆f the address stored there.┆
0x0ba0…0bc0 20 20 54 68 65 20 6c 65 6e 67 74 68 20 6f 66 20 74 68 65 20 6d 65 73 73 61 67 65 20 69 73 20 72 ┆ The length of the message is r┆
0x0bc0…0be0 65 74 75 72 6e 65 64 20 69 6e 20 5f 08 63 5f 08 63 2e 20 20 49 66 20 61 0a 20 20 20 20 20 6d 65 ┆eturned in _ c_ c. If a me┆
0x0be0…0c00 73 73 61 67 65 20 69 73 20 74 6f 6f 20 6c 6f 6e 67 20 74 6f 20 66 69 74 20 69 6e 20 74 68 65 20 ┆ssage is too long to fit in the ┆
0x0c00…0c20 73 75 70 70 6c 69 65 64 20 62 75 66 66 65 72 2c 20 65 78 63 65 73 73 0a 20 20 20 20 20 62 79 74 ┆supplied buffer, excess byt┆
0x0c20…0c40 65 73 20 6d 61 79 20 62 65 20 64 69 73 63 61 72 64 65 64 20 64 65 70 65 6e 64 69 6e 67 20 6f 6e ┆es may be discarded depending on┆
0x0c40…0c60 20 74 68 65 20 74 79 70 65 20 6f 66 20 73 6f 63 6b 65 74 20 74 68 65 0a 20 20 20 20 20 6d 65 73 ┆ the type of socket the mes┆
0x0c60…0c80 73 61 67 65 20 69 73 20 72 65 63 65 69 76 65 64 20 66 72 6f 6d 3b 20 73 65 65 20 5f 08 73 5f 08 ┆sage is received from; see _ s_ ┆
0x0c80…0ca0 6f 5f 08 63 5f 08 6b 5f 08 65 5f 08 74 28 32 29 2e 0a 0a 20 20 20 20 20 49 66 20 6e 6f 20 6d 65 ┆o_ c_ k_ e_ t(2). If no me┆
0x0ca0…0cc0 73 73 61 67 65 73 20 61 72 65 20 61 76 61 69 6c 61 62 6c 65 20 61 74 20 74 68 65 20 73 6f 63 6b ┆ssages are available at the sock┆
0x0cc0…0ce0 65 74 2c 20 74 68 65 20 72 65 63 65 69 76 65 20 63 61 6c 6c 0a 20 20 20 20 20 77 61 69 74 73 20 ┆et, the receive call waits ┆
0x0ce0…0d00 66 6f 72 20 61 20 6d 65 73 73 61 67 65 20 74 6f 20 61 72 72 69 76 65 2c 20 75 6e 6c 65 73 73 20 ┆for a message to arrive, unless ┆
0x0d00…0d20 74 68 65 20 73 6f 63 6b 65 74 20 69 73 20 6e 6f 6e 2d 0a 20 20 20 20 20 62 6c 6f 63 6b 69 6e 67 ┆the socket is non- blocking┆
0x0d20…0d40 20 28 73 65 65 20 5f 08 69 5f 08 6f 5f 08 63 5f 08 74 5f 08 6c 28 32 29 29 20 69 6e 20 77 68 69 ┆ (see _ i_ o_ c_ t_ l(2)) in whi┆
0x0d40…0d60 63 68 20 63 61 73 65 20 61 20 5f 08 63 5f 08 63 20 6f 66 20 2d 31 20 69 73 20 72 65 74 75 72 6e ┆ch case a _ c_ c of -1 is return┆
0x0d60…0d80 65 64 0a 20 20 20 20 20 77 69 74 68 20 74 68 65 20 65 78 74 65 72 6e 61 6c 20 76 61 72 69 61 62 ┆ed with the external variab┆
0x0d80…0da0 6c 65 20 65 72 72 6e 6f 20 73 65 74 20 74 6f 20 45 41 47 41 49 4e 2e 0a 0a 20 20 20 20 20 54 68 ┆le errno set to EAGAIN. Th┆
0x0da0…0dc0 65 20 5f 08 73 5f 08 65 5f 08 6c 5f 08 65 5f 08 63 5f 08 74 20 63 61 6c 6c 20 6d 61 79 20 62 65 ┆e _ s_ e_ l_ e_ c_ t call may be┆
0x0dc0…0de0 20 75 73 65 64 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 77 68 65 6e 20 6d 6f 72 65 20 64 61 74 ┆ used to determine when more dat┆
0x0de0…0e00 61 0a 20 20 20 20 20 61 72 72 69 76 65 73 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 66 5f 08 6c ┆a arrives. The _ f_ l┆
0x0e00…0e20 5f 08 61 5f 08 67 5f 08 73 20 61 72 67 75 6d 65 6e 74 20 74 6f 20 61 20 73 65 6e 64 20 63 61 6c ┆_ a_ g_ s argument to a send cal┆
0x0e20…0e40 6c 20 69 73 20 66 6f 72 6d 65 64 20 62 79 20 5f 08 6f 5f 08 72 27 69 6e 67 20 6f 6e 65 20 6f 72 ┆l is formed by _ o_ r'ing one or┆
0x0e40…0e60 0a 20 20 20 20 20 6d 6f 72 65 20 6f 66 20 74 68 65 20 76 61 6c 75 65 73 2c 0a 0a 20 20 20 20 20 ┆ more of the values, ┆
0x0e60…0e80 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 53 47 5f 4f 4f 42 20 20 20 30 78 31 20 20 2f 2a 20 70 ┆ #define MSG_OOB 0x1 /* p┆
0x0e80…0ea0 72 6f 63 65 73 73 20 6f 75 74 2d 6f 66 2d 62 61 6e 64 20 64 61 74 61 20 2a 2f 0a 20 20 20 20 20 ┆rocess out-of-band data */ ┆
0x0ea0…0ec0 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 53 47 5f 50 45 45 4b 20 20 30 78 32 20 20 2f 2a 20 70 ┆ #define MSG_PEEK 0x2 /* p┆
0x0ec0…0ee0 65 65 6b 20 61 74 20 69 6e 63 6f 6d 69 6e 67 20 6d 65 73 73 61 67 65 20 2a 2f 0a 0a 20 20 20 20 ┆eek at incoming message */ ┆
0x0ee0…0f00 20 54 68 65 20 5f 08 72 5f 08 65 5f 08 63 5f 08 76 5f 08 6d 5f 08 73 5f 08 67 20 63 61 6c 6c 20 ┆ The _ r_ e_ c_ v_ m_ s_ g call ┆
0x0f00…0f20 75 73 65 73 20 61 20 6d 73 67 68 64 72 20 73 74 72 75 63 74 75 72 65 20 74 6f 20 6d 69 6e 69 6d ┆uses a msghdr structure to minim┆
0x0f20…0f40 69 7a 65 20 74 68 65 0a 20 20 20 20 20 6e 75 6d 62 65 72 20 6f 66 20 64 69 72 65 63 74 6c 79 20 ┆ize the number of directly ┆
0x0f40…0f60 73 75 70 70 6c 69 65 64 20 70 61 72 61 6d 65 74 65 72 73 2e 20 20 54 68 69 73 20 73 74 72 75 63 ┆supplied parameters. This struc┆
0x0f60…0f80 74 75 72 65 20 68 61 73 0a 20 20 20 20 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 66 6f 72 6d ┆ture has the following form┆
0x0f80…0fa0 2c 20 61 73 20 64 65 66 69 6e 65 64 20 69 6e 20 3c 73 79 73 2f 73 6f 63 6b 65 74 2e 68 3e 3a 0a ┆, as defined in <sys/socket.h>: ┆
0x0fa0…0fc0 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 6d 73 67 68 64 72 20 7b 0a ┆ struct msghdr { ┆
0x0fc0…0fe0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 64 64 72 5f 74 20 20 20 20 20 6d 73 67 ┆ caddr_t msg┆
0x0fe0…1000 5f 6e 61 6d 65 3b 20 20 20 20 20 20 20 20 2f 2a 20 6f 70 74 69 6f 6e 61 6c 20 61 64 64 72 65 73 ┆_name; /* optional addres┆
0x1000…1020 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 20 20 20 20 20 ┆s */ int ┆
0x1020…1040 20 20 6d 73 67 5f 6e 61 6d 65 6c 65 6e 3b 20 20 20 20 20 2f 2a 20 73 69 7a 65 20 6f 66 20 61 64 ┆ msg_namelen; /* size of ad┆
0x1040…1060 64 72 65 73 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 ┆dress */ struct┆
0x1060…1080 20 69 6f 76 20 20 2a 6d 73 67 5f 69 6f 76 3b 20 20 20 20 20 20 20 20 2f 2a 20 73 63 61 74 74 65 ┆ iov *msg_iov; /* scatte┆
0x1080…10a0 72 2f 67 61 74 68 65 72 20 61 72 72 61 79 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆r/gather array */ ┆
0x10a0…10c0 20 20 20 69 6e 74 20 20 20 20 20 20 20 20 20 6d 73 67 5f 69 6f 76 6c 65 6e 3b 20 20 20 20 20 20 ┆ int msg_iovlen; ┆
0x10c0…10e0 2f 2a 20 23 20 65 6c 65 6d 65 6e 74 73 20 69 6e 20 6d 73 67 5f 69 6f 76 20 2a 2f 0a 20 20 20 20 ┆/* # elements in msg_iov */ ┆
0x10e0…1100 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 64 64 72 5f 74 20 20 20 20 20 6d 73 67 5f 61 63 63 ┆ caddr_t msg_acc┆
0x1100…1120 72 69 67 68 74 73 3b 20 20 20 2f 2a 20 61 63 63 65 73 73 20 72 69 67 68 74 73 20 73 65 6e 74 2f ┆rights; /* access rights sent/┆
0x1120…1140 72 65 63 65 69 76 65 64 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 ┆received */ int┆
0x1140…1160 20 20 20 20 20 20 20 20 20 6d 73 67 5f 61 63 63 72 69 67 68 74 73 6c 65 6e 3b 0a 20 20 20 20 20 ┆ msg_accrightslen; ┆
0x1160…1180 20 20 20 20 20 7d 3b 0a 0a 20 20 20 20 20 48 65 72 65 20 6d 73 67 5f 6e 61 6d 65 20 61 6e 64 20 ┆ }; Here msg_name and ┆
0x1180…11a0 6d 73 67 5f 6e 61 6d 65 6c 65 6e 20 73 70 65 63 69 66 79 20 74 68 65 20 64 65 73 74 69 6e 61 74 ┆msg_namelen specify the destinat┆
0x11a0…11c0 69 6f 6e 0a 20 20 20 20 20 61 64 64 72 65 73 73 20 69 66 20 74 68 65 20 73 6f 63 6b 65 74 20 69 ┆ion address if the socket i┆
0x11c0…11e0 73 20 75 6e 63 6f 6e 6e 65 63 74 65 64 3b 20 6d 73 67 5f 6e 61 6d 65 20 6d 61 79 20 62 65 20 67 ┆s unconnected; msg_name may be g┆
0x11e0…1200 69 76 65 6e 0a 20 20 20 20 20 61 73 20 61 20 6e 75 6c 6c 20 70 6f 69 6e 74 65 72 20 69 66 20 6e ┆iven as a null pointer if n┆
0x1200…1220 6f 20 6e 61 6d 65 73 20 61 72 65 20 64 65 73 69 72 65 64 20 6f 72 20 72 65 71 75 69 72 65 64 2e ┆o names are desired or required.┆
0x1220…1240 20 20 54 68 65 0a 20 20 20 20 20 6d 73 67 5f 69 6f 76 20 61 6e 64 20 6d 73 67 5f 69 6f 76 6c 65 ┆ The msg_iov and msg_iovle┆
0x1240…1260 6e 20 64 65 73 63 72 69 62 65 20 74 68 65 20 73 63 61 74 74 65 72 20 67 61 74 68 65 72 20 6c 6f ┆n describe the scatter gather lo┆
0x1260…1280 63 61 2d 0a 20 20 20 20 20 74 69 6f 6e 73 2c 20 61 73 20 64 65 73 63 72 69 62 65 64 20 69 6e 20 ┆ca- tions, as described in ┆
0x1280…12a0 5f 08 72 5f 08 65 5f 08 61 5f 08 64 2e 20 20 41 63 63 65 73 73 20 72 69 67 68 74 73 20 28 66 69 ┆_ r_ e_ a_ d. Access rights (fi┆
0x12a0…12c0 6c 65 20 64 65 73 63 72 69 70 2d 0a 20 20 20 20 20 74 6f 72 73 29 20 74 6f 20 62 65 20 73 65 6e ┆le descrip- tors) to be sen┆
0x12c0…12e0 74 20 61 6c 6f 6e 67 20 77 69 74 68 20 74 68 65 20 6d 65 73 73 61 67 65 20 61 72 65 20 73 70 65 ┆t along with the message are spe┆
0x12e0…1300 63 69 66 69 65 64 20 69 6e 0a 20 20 20 20 20 6d 73 67 5f 61 63 63 72 69 67 68 74 73 2c 20 77 68 ┆cified in msg_accrights, wh┆
0x1300…1320 69 63 68 20 68 61 73 20 6c 65 6e 67 74 68 20 6d 73 67 5f 61 63 63 72 69 67 68 74 73 6c 65 6e 2e ┆ich has length msg_accrightslen.┆
0x1320…1340 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 ┆ R R R RE E E ET T T TU U U UR ┆
0x1340…1360 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c 08 4c ┆R R RN N N N V V V VA A A AL L L┆
0x1360…1380 08 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 54 68 65 73 65 20 63 61 6c 6c ┆ LU U U UE E E E These call┆
0x1380…13a0 73 20 72 65 74 75 72 6e 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 62 79 74 65 73 20 72 65 63 ┆s return the number of bytes rec┆
0x13a0…13c0 65 69 76 65 64 2c 20 6f 72 20 2d 31 20 69 66 20 61 6e 0a 20 20 20 20 20 65 72 72 6f 72 20 6f 63 ┆eived, or -1 if an error oc┆
0x13c0…13e0 63 75 72 72 65 64 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08 52 4f 08 ┆curred. E E E ER R R RR R R RO ┆
0x13e0…1400 4f 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 63 61 6c ┆O O OR R R RS S S S The cal┆
0x1400…1420 6c 73 20 66 61 69 6c 20 69 66 3a 0a 0a 20 20 20 20 20 5b 45 42 41 44 46 5d 20 20 20 54 68 65 20 ┆ls fail if: [EBADF] The ┆
0x1420…1440 61 72 67 75 6d 65 6e 74 20 5f 08 73 20 69 73 20 61 6e 20 69 6e 76 61 6c 69 64 20 64 65 73 63 72 ┆argument _ s is an invalid descr┆
0x1440…1460 69 70 74 6f 72 2e 0a 0a 20 20 20 20 20 5b 45 46 41 55 4c 54 5d 20 20 54 68 65 20 64 61 74 61 20 ┆iptor. [EFAULT] The data ┆
0x1460…1480 77 61 73 20 73 70 65 63 69 66 69 65 64 20 74 6f 20 62 65 20 72 65 63 65 69 76 65 64 20 69 6e 74 ┆was specified to be received int┆
0x1480…14a0 6f 20 61 20 6e 6f 6e 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 69 73 74 65 6e 74 ┆o a non- existent┆
0x14a0…14c0 20 6f 72 20 70 72 6f 74 65 63 74 65 64 20 70 61 72 74 20 6f 66 20 74 68 65 20 70 72 6f 63 65 73 ┆ or protected part of the proces┆
0x14c0…14e0 73 20 61 64 64 72 65 73 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 70 61 63 65 2e 0a ┆s address space. ┆
0x14e0…1500 0a 20 20 20 20 20 5b 45 49 4e 54 52 5d 20 20 20 54 68 65 20 72 65 63 65 69 76 65 20 77 61 73 20 ┆ [EINTR] The receive was ┆
0x1500…1520 69 6e 74 65 72 72 75 70 74 65 64 20 62 79 20 64 65 6c 69 76 65 72 79 20 6f 66 20 61 20 73 69 67 ┆interrupted by delivery of a sig┆
0x1520…1540 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 61 6c 20 62 65 66 6f 72 65 20 61 6e 79 20 ┆- nal before any ┆
0x1540…1560 64 61 74 61 20 77 61 73 20 61 76 61 69 6c 61 62 6c 65 20 66 6f 72 20 74 68 65 20 72 65 63 65 69 ┆data was available for the recei┆
0x1560…1580 76 65 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 54 53 4f 43 4b 5d 0a 20 20 20 20 20 20 20 20 20 20 20 ┆ve. [ENOTSOCK] ┆
0x1580…15a0 20 20 20 20 54 68 65 20 61 72 67 75 6d 65 6e 74 20 5f 08 73 20 69 73 20 6e 6f 74 20 61 20 73 6f ┆ The argument _ s is not a so┆
0x15a0…15c0 63 6b 65 74 2e 0a 0a 20 20 20 20 20 5b 45 4f 50 4e 4f 54 53 55 50 50 5d 0a 20 20 20 20 20 20 20 ┆cket. [EOPNOTSUPP] ┆
0x15c0…15e0 20 20 20 20 20 20 20 20 41 6e 20 6f 70 65 72 61 74 69 6f 6e 20 77 61 73 20 61 74 74 65 6d 70 74 ┆ An operation was attempt┆
0x15e0…1600 65 64 20 74 68 61 74 20 69 73 20 6e 6f 74 20 73 75 70 70 6f 72 74 65 64 0a 20 20 20 20 20 20 20 ┆ed that is not supported ┆
0x1600…1620 20 20 20 20 20 20 20 20 62 79 20 74 68 65 20 73 6f 63 6b 65 74 27 73 20 70 72 6f 74 6f 63 6f 6c ┆ by the socket's protocol┆
0x1620…1640 20 66 61 6d 69 6c 79 2e 0a 0a 20 20 20 20 20 5b 45 41 47 41 49 4e 5d 20 20 54 68 65 20 73 6f 63 ┆ family. [EAGAIN] The soc┆
0x1640…1660 6b 65 74 20 69 73 20 6d 61 72 6b 65 64 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 20 61 6e 64 20 74 ┆ket is marked non-blocking and t┆
0x1660…1680 68 65 20 72 65 63 65 69 76 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 70 65 72 61 74 ┆he receive operat┆
0x1680…16a0 69 6f 6e 20 77 6f 75 6c 64 20 62 6c 6f 63 6b 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 ┆ion would block. S S S SE E E E┆
0x16a0…16c0 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 4f 08 4f ┆E E E E A A A AL L L LS S S SO O┆
0x16c0…16e0 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 72 65 61 64 ┆ O O System Calls (2): read┆
0x16e0…1700 2c 20 73 65 6e 64 2c 20 73 6f 63 6b 65 74 2c 20 6f 70 65 6e 2c 20 67 65 74 73 6f 63 6b 6f 70 74 ┆, send, socket, open, getsockopt┆
0x1700…1720 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 39 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ December 1990 ┆
0x1720…1740 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 ┆ TX Programmer's Refere┆
0x1740…1751 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆nce ┆