Home » Archimedes archive » Acorn User » AU 1997-Xmas B.adf » PD » NetPlex/!Netplex/SocketFS/Faq

NetPlex/!Netplex/SocketFS/Faq

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1997-Xmas B.adf » PD
Filename: NetPlex/!Netplex/SocketFS/Faq
Read OK:
File size: 0421 bytes
Load address: 0000
Exec address: 0000
File contents
SocketFS FAQ
============

Ok this is the first release so these questions have'nt been asked yet.
But if I don't put them here I expect they soon will be!


Contents
--------

     1. What happens to OOB data
     2. BGET#X% never returns

Body?
-----

     Q1. What happens to OOB data.
     A1. Unless you're specificaly watching event 19 yourself, little.
         I do not look for or do any special handling for OOB data.

     Q2. BGET#X% never returns.
     A2. BGET#X% only returns if there's data waiting to be sent. On Freenet
         you can see if there any data waiting by doing *netstat and if the
         Recv-Q entry for the socket you're interested is non-zero, there is
         data waiting. Otherwise BGET will wait for data from the remote side,
         while it is waiting you won't be able to do anything else with
         socketfs on this socket. As the calls are blocked by risc-os, so
         if you need to prod the remote machine to get the data, prod it before
         you run BGET.
         
00000000  53 6f 63 6b 65 74 46 53  20 46 41 51 0d 0a 3d 3d  |SocketFS FAQ..==|
00000010  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 0d 0a 0d 0a 4f 6b  |==========....Ok|
00000020  20 74 68 69 73 20 69 73  20 74 68 65 20 66 69 72  | this is the fir|
00000030  73 74 20 72 65 6c 65 61  73 65 20 73 6f 20 74 68  |st release so th|
00000040  65 73 65 20 71 75 65 73  74 69 6f 6e 73 20 68 61  |ese questions ha|
00000050  76 65 27 6e 74 20 62 65  65 6e 20 61 73 6b 65 64  |ve'nt been asked|
00000060  20 79 65 74 2e 0d 0a 42  75 74 20 69 66 20 49 20  | yet...But if I |
00000070  64 6f 6e 27 74 20 70 75  74 20 74 68 65 6d 20 68  |don't put them h|
00000080  65 72 65 20 49 20 65 78  70 65 63 74 20 74 68 65  |ere I expect the|
00000090  79 20 73 6f 6f 6e 20 77  69 6c 6c 20 62 65 21 0d  |y soon will be!.|
000000a0  0a 0d 0a 0d 0a 43 6f 6e  74 65 6e 74 73 0d 0a 2d  |.....Contents..-|
000000b0  2d 2d 2d 2d 2d 2d 2d 0d  0a 0d 0a 20 20 20 20 20  |-------....     |
000000c0  31 2e 20 57 68 61 74 20  68 61 70 70 65 6e 73 20  |1. What happens |
000000d0  74 6f 20 4f 4f 42 20 64  61 74 61 0d 0a 20 20 20  |to OOB data..   |
000000e0  20 20 32 2e 20 42 47 45  54 23 58 25 20 6e 65 76  |  2. BGET#X% nev|
000000f0  65 72 20 72 65 74 75 72  6e 73 0d 0a 0d 0a 42 6f  |er returns....Bo|
00000100  64 79 3f 0d 0a 2d 2d 2d  2d 2d 0d 0a 0d 0a 20 20  |dy?..-----....  |
00000110  20 20 20 51 31 2e 20 57  68 61 74 20 68 61 70 70  |   Q1. What happ|
00000120  65 6e 73 20 74 6f 20 4f  4f 42 20 64 61 74 61 2e  |ens to OOB data.|
00000130  0d 0a 20 20 20 20 20 41  31 2e 20 55 6e 6c 65 73  |..     A1. Unles|
00000140  73 20 79 6f 75 27 72 65  20 73 70 65 63 69 66 69  |s you're specifi|
00000150  63 61 6c 79 20 77 61 74  63 68 69 6e 67 20 65 76  |caly watching ev|
00000160  65 6e 74 20 31 39 20 79  6f 75 72 73 65 6c 66 2c  |ent 19 yourself,|
00000170  20 6c 69 74 74 6c 65 2e  0d 0a 20 20 20 20 20 20  | little...      |
00000180  20 20 20 49 20 64 6f 20  6e 6f 74 20 6c 6f 6f 6b  |   I do not look|
00000190  20 66 6f 72 20 6f 72 20  64 6f 20 61 6e 79 20 73  | for or do any s|
000001a0  70 65 63 69 61 6c 20 68  61 6e 64 6c 69 6e 67 20  |pecial handling |
000001b0  66 6f 72 20 4f 4f 42 20  64 61 74 61 2e 0d 0a 0d  |for OOB data....|
000001c0  0a 20 20 20 20 20 51 32  2e 20 42 47 45 54 23 58  |.     Q2. BGET#X|
000001d0  25 20 6e 65 76 65 72 20  72 65 74 75 72 6e 73 2e  |% never returns.|
000001e0  0d 0a 20 20 20 20 20 41  32 2e 20 42 47 45 54 23  |..     A2. BGET#|
000001f0  58 25 20 6f 6e 6c 79 20  72 65 74 75 72 6e 73 20  |X% only returns |
00000200  69 66 20 74 68 65 72 65  27 73 20 64 61 74 61 20  |if there's data |
00000210  77 61 69 74 69 6e 67 20  74 6f 20 62 65 20 73 65  |waiting to be se|
00000220  6e 74 2e 20 4f 6e 20 46  72 65 65 6e 65 74 0d 0a  |nt. On Freenet..|
00000230  20 20 20 20 20 20 20 20  20 79 6f 75 20 63 61 6e  |         you can|
00000240  20 73 65 65 20 69 66 20  74 68 65 72 65 20 61 6e  | see if there an|
00000250  79 20 64 61 74 61 20 77  61 69 74 69 6e 67 20 62  |y data waiting b|
00000260  79 20 64 6f 69 6e 67 20  2a 6e 65 74 73 74 61 74  |y doing *netstat|
00000270  20 61 6e 64 20 69 66 20  74 68 65 0d 0a 20 20 20  | and if the..   |
00000280  20 20 20 20 20 20 52 65  63 76 2d 51 20 65 6e 74  |      Recv-Q ent|
00000290  72 79 20 66 6f 72 20 74  68 65 20 73 6f 63 6b 65  |ry for the socke|
000002a0  74 20 79 6f 75 27 72 65  20 69 6e 74 65 72 65 73  |t you're interes|
000002b0  74 65 64 20 69 73 20 6e  6f 6e 2d 7a 65 72 6f 2c  |ted is non-zero,|
000002c0  20 74 68 65 72 65 20 69  73 0d 0a 20 20 20 20 20  | there is..     |
000002d0  20 20 20 20 64 61 74 61  20 77 61 69 74 69 6e 67  |    data waiting|
000002e0  2e 20 4f 74 68 65 72 77  69 73 65 20 42 47 45 54  |. Otherwise BGET|
000002f0  20 77 69 6c 6c 20 77 61  69 74 20 66 6f 72 20 64  | will wait for d|
00000300  61 74 61 20 66 72 6f 6d  20 74 68 65 20 72 65 6d  |ata from the rem|
00000310  6f 74 65 20 73 69 64 65  2c 0d 0a 20 20 20 20 20  |ote side,..     |
00000320  20 20 20 20 77 68 69 6c  65 20 69 74 20 69 73 20  |    while it is |
00000330  77 61 69 74 69 6e 67 20  79 6f 75 20 77 6f 6e 27  |waiting you won'|
00000340  74 20 62 65 20 61 62 6c  65 20 74 6f 20 64 6f 20  |t be able to do |
00000350  61 6e 79 74 68 69 6e 67  20 65 6c 73 65 20 77 69  |anything else wi|
00000360  74 68 0d 0a 20 20 20 20  20 20 20 20 20 73 6f 63  |th..         soc|
00000370  6b 65 74 66 73 20 6f 6e  20 74 68 69 73 20 73 6f  |ketfs on this so|
00000380  63 6b 65 74 2e 20 41 73  20 74 68 65 20 63 61 6c  |cket. As the cal|
00000390  6c 73 20 61 72 65 20 62  6c 6f 63 6b 65 64 20 62  |ls are blocked b|
000003a0  79 20 72 69 73 63 2d 6f  73 2c 20 73 6f 0d 0a 20  |y risc-os, so.. |
000003b0  20 20 20 20 20 20 20 20  69 66 20 79 6f 75 20 6e  |        if you n|
000003c0  65 65 64 20 74 6f 20 70  72 6f 64 20 74 68 65 20  |eed to prod the |
000003d0  72 65 6d 6f 74 65 20 6d  61 63 68 69 6e 65 20 74  |remote machine t|
000003e0  6f 20 67 65 74 20 74 68  65 20 64 61 74 61 2c 20  |o get the data, |
000003f0  70 72 6f 64 20 69 74 20  62 65 66 6f 72 65 0d 0a  |prod it before..|
00000400  20 20 20 20 20 20 20 20  20 79 6f 75 20 72 75 6e  |         you run|
00000410  20 42 47 45 54 2e 0d 0a  20 20 20 20 20 20 20 20  | BGET...        |
00000420  20                                                | |
00000421