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

NetPlex/!Netplex/SocketFS/Howtomake

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/Howtomake
Read OK:
File size: 0857 bytes
Load address: 0000
Exec address: 0000
File contents
How to Make SocketFS
====================

Its probably going to be somewhat difficult for you to use the supplied makefile
as it is setup for my somewhat scattered way of working.
However in principle you shouldn't have to much difficuty, use the switches 
listed in the makefile and just compile Nameproc, assemble ModMain and 
link them and the your favourite sockets library together.
I've added the Socket_* SWIs to the standard SWINames.h and ahve provided
an exerpt of the file in the H directory with my FSControls.h .

I used the acorn's socklib which is available from there ftp site,
I've provided the binaries, and also amufile as an alternative makefile you 
might find easier to use.

Also have a look in the H. directory I've put in here some of the various
header files which I made while working on this, done of them offer sepcific
support to socketfs so they on my system I grab them out of more global
library dircectories but I've provide them here so you can find them more
easily. Also note below is some diif's to the sys/ioctl.h from acorns socklib
I've made.

------------------Start diff's

*** ADFS::Ethel.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.Temp.ioctl Mon Nov 06 17:53:19 1995
--- ADFS::Ethel.$.Devtools.Libraries.Socklib.Sys.H.Ioctl               Sun Aug 17 19:06:03 1997
***************
*** 5,10 ****
--- 5,14 ----
   * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
   *
   * $Log: ioctl.h,v $
+  *
+  * Revised       97/08/16  rgammans(@compurg.demon.co.uk)
+  * Added  FIOSLEEPTW for Freenet /riscos
+  *
   * Revision 1.5  95/09/21  15:21:48  pwain
   * Added SIOCGIFMTU and SIOCSIFMTU for PPP driver.
   *
*************** struct ttysize 
*** 275,280 ****
--- 279,285 ----
  #define FIOSETOWN _IOW('f', 124, int)   /* set owner */
  #define FIOGETOWN _IOR('f', 123, int)   /* get owner */
  #define FIORXDIR _IOW('f', 122, int)   /* set/clear direct rx */
+ #define FIOSLEEPTW      _IOW('f', 121, int)       /* set/clear upcall 6 use * 16/8/97 RGG */
  
  /* socket i/o controls */
  #define SIOCSHIWAT _IOW('s',  0, int)    /* set high watermark */
  
-------------- End diff's
00000000  48 6f 77 20 74 6f 20 4d  61 6b 65 20 53 6f 63 6b  |How to Make Sock|
00000010  65 74 46 53 0a 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |etFS.===========|
00000020  3d 3d 3d 3d 3d 3d 3d 3d  3d 0a 0a 49 74 73 20 70  |=========..Its p|
00000030  72 6f 62 61 62 6c 79 20  67 6f 69 6e 67 20 74 6f  |robably going to|
00000040  20 62 65 20 73 6f 6d 65  77 68 61 74 20 64 69 66  | be somewhat dif|
00000050  66 69 63 75 6c 74 20 66  6f 72 20 79 6f 75 20 74  |ficult for you t|
00000060  6f 20 75 73 65 20 74 68  65 20 73 75 70 70 6c 69  |o use the suppli|
00000070  65 64 20 6d 61 6b 65 66  69 6c 65 0a 61 73 20 69  |ed makefile.as i|
00000080  74 20 69 73 20 73 65 74  75 70 20 66 6f 72 20 6d  |t is setup for m|
00000090  79 20 73 6f 6d 65 77 68  61 74 20 73 63 61 74 74  |y somewhat scatt|
000000a0  65 72 65 64 20 77 61 79  20 6f 66 20 77 6f 72 6b  |ered way of work|
000000b0  69 6e 67 2e 0a 48 6f 77  65 76 65 72 20 69 6e 20  |ing..However in |
000000c0  70 72 69 6e 63 69 70 6c  65 20 79 6f 75 20 73 68  |principle you sh|
000000d0  6f 75 6c 64 6e 27 74 20  68 61 76 65 20 74 6f 20  |ouldn't have to |
000000e0  6d 75 63 68 20 64 69 66  66 69 63 75 74 79 2c 20  |much difficuty, |
000000f0  75 73 65 20 74 68 65 20  73 77 69 74 63 68 65 73  |use the switches|
00000100  20 0a 6c 69 73 74 65 64  20 69 6e 20 74 68 65 20  | .listed in the |
00000110  6d 61 6b 65 66 69 6c 65  20 61 6e 64 20 6a 75 73  |makefile and jus|
00000120  74 20 63 6f 6d 70 69 6c  65 20 4e 61 6d 65 70 72  |t compile Namepr|
00000130  6f 63 2c 20 61 73 73 65  6d 62 6c 65 20 4d 6f 64  |oc, assemble Mod|
00000140  4d 61 69 6e 20 61 6e 64  20 0a 6c 69 6e 6b 20 74  |Main and .link t|
00000150  68 65 6d 20 61 6e 64 20  74 68 65 20 79 6f 75 72  |hem and the your|
00000160  20 66 61 76 6f 75 72 69  74 65 20 73 6f 63 6b 65  | favourite socke|
00000170  74 73 20 6c 69 62 72 61  72 79 20 74 6f 67 65 74  |ts library toget|
00000180  68 65 72 2e 0a 49 27 76  65 20 61 64 64 65 64 20  |her..I've added |
00000190  74 68 65 20 53 6f 63 6b  65 74 5f 2a 20 53 57 49  |the Socket_* SWI|
000001a0  73 20 74 6f 20 74 68 65  20 73 74 61 6e 64 61 72  |s to the standar|
000001b0  64 20 53 57 49 4e 61 6d  65 73 2e 68 20 61 6e 64  |d SWINames.h and|
000001c0  20 61 68 76 65 20 70 72  6f 76 69 64 65 64 0a 61  | ahve provided.a|
000001d0  6e 20 65 78 65 72 70 74  20 6f 66 20 74 68 65 20  |n exerpt of the |
000001e0  66 69 6c 65 20 69 6e 20  74 68 65 20 48 20 64 69  |file in the H di|
000001f0  72 65 63 74 6f 72 79 20  77 69 74 68 20 6d 79 20  |rectory with my |
00000200  46 53 43 6f 6e 74 72 6f  6c 73 2e 68 20 2e 0a 0a  |FSControls.h ...|
00000210  49 20 75 73 65 64 20 74  68 65 20 61 63 6f 72 6e  |I used the acorn|
00000220  27 73 20 73 6f 63 6b 6c  69 62 20 77 68 69 63 68  |'s socklib which|
00000230  20 69 73 20 61 76 61 69  6c 61 62 6c 65 20 66 72  | is available fr|
00000240  6f 6d 20 74 68 65 72 65  20 66 74 70 20 73 69 74  |om there ftp sit|
00000250  65 2c 0a 49 27 76 65 20  70 72 6f 76 69 64 65 64  |e,.I've provided|
00000260  20 74 68 65 20 62 69 6e  61 72 69 65 73 2c 20 61  | the binaries, a|
00000270  6e 64 20 61 6c 73 6f 20  61 6d 75 66 69 6c 65 20  |nd also amufile |
00000280  61 73 20 61 6e 20 61 6c  74 65 72 6e 61 74 69 76  |as an alternativ|
00000290  65 20 6d 61 6b 65 66 69  6c 65 20 79 6f 75 20 0a  |e makefile you .|
000002a0  6d 69 67 68 74 20 66 69  6e 64 20 65 61 73 69 65  |might find easie|
000002b0  72 20 74 6f 20 75 73 65  2e 0a 0a 41 6c 73 6f 20  |r to use...Also |
000002c0  68 61 76 65 20 61 20 6c  6f 6f 6b 20 69 6e 20 74  |have a look in t|
000002d0  68 65 20 48 2e 20 64 69  72 65 63 74 6f 72 79 20  |he H. directory |
000002e0  49 27 76 65 20 70 75 74  20 69 6e 20 68 65 72 65  |I've put in here|
000002f0  20 73 6f 6d 65 20 6f 66  20 74 68 65 20 76 61 72  | some of the var|
00000300  69 6f 75 73 0a 68 65 61  64 65 72 20 66 69 6c 65  |ious.header file|
00000310  73 20 77 68 69 63 68 20  49 20 6d 61 64 65 20 77  |s which I made w|
00000320  68 69 6c 65 20 77 6f 72  6b 69 6e 67 20 6f 6e 20  |hile working on |
00000330  74 68 69 73 2c 20 64 6f  6e 65 20 6f 66 20 74 68  |this, done of th|
00000340  65 6d 20 6f 66 66 65 72  20 73 65 70 63 69 66 69  |em offer sepcifi|
00000350  63 0a 73 75 70 70 6f 72  74 20 74 6f 20 73 6f 63  |c.support to soc|
00000360  6b 65 74 66 73 20 73 6f  20 74 68 65 79 20 6f 6e  |ketfs so they on|
00000370  20 6d 79 20 73 79 73 74  65 6d 20 49 20 67 72 61  | my system I gra|
00000380  62 20 74 68 65 6d 20 6f  75 74 20 6f 66 20 6d 6f  |b them out of mo|
00000390  72 65 20 67 6c 6f 62 61  6c 0a 6c 69 62 72 61 72  |re global.librar|
000003a0  79 20 64 69 72 63 65 63  74 6f 72 69 65 73 20 62  |y dircectories b|
000003b0  75 74 20 49 27 76 65 20  70 72 6f 76 69 64 65 20  |ut I've provide |
000003c0  74 68 65 6d 20 68 65 72  65 20 73 6f 20 79 6f 75  |them here so you|
000003d0  20 63 61 6e 20 66 69 6e  64 20 74 68 65 6d 20 6d  | can find them m|
000003e0  6f 72 65 0a 65 61 73 69  6c 79 2e 20 41 6c 73 6f  |ore.easily. Also|
000003f0  20 6e 6f 74 65 20 62 65  6c 6f 77 20 69 73 20 73  | note below is s|
00000400  6f 6d 65 20 64 69 69 66  27 73 20 74 6f 20 74 68  |ome diif's to th|
00000410  65 20 73 79 73 2f 69 6f  63 74 6c 2e 68 20 66 72  |e sys/ioctl.h fr|
00000420  6f 6d 20 61 63 6f 72 6e  73 20 73 6f 63 6b 6c 69  |om acorns sockli|
00000430  62 0a 49 27 76 65 20 6d  61 64 65 2e 0a 0a 2d 2d  |b.I've made...--|
00000440  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000450  53 74 61 72 74 20 64 69  66 66 27 73 0a 0a 2a 2a  |Start diff's..**|
00000460  2a 20 41 44 46 53 3a 3a  45 74 68 65 6c 2e 24 2e  |* ADFS::Ethel.$.|
00000470  21 42 4f 4f 54 2e 52 65  73 6f 75 72 63 65 73 2e  |!BOOT.Resources.|
00000480  21 53 63 72 61 70 2e 53  63 72 61 70 44 69 72 73  |!Scrap.ScrapDirs|
00000490  2e 53 63 72 61 70 44 69  72 2e 54 65 6d 70 2e 69  |.ScrapDir.Temp.i|
000004a0  6f 63 74 6c 20 4d 6f 6e  20 4e 6f 76 20 30 36 20  |octl Mon Nov 06 |
000004b0  31 37 3a 35 33 3a 31 39  20 31 39 39 35 0a 2d 2d  |17:53:19 1995.--|
000004c0  2d 20 41 44 46 53 3a 3a  45 74 68 65 6c 2e 24 2e  |- ADFS::Ethel.$.|
000004d0  44 65 76 74 6f 6f 6c 73  2e 4c 69 62 72 61 72 69  |Devtools.Librari|
000004e0  65 73 2e 53 6f 63 6b 6c  69 62 2e 53 79 73 2e 48  |es.Socklib.Sys.H|
000004f0  2e 49 6f 63 74 6c 20 20  20 20 20 20 20 20 20 20  |.Ioctl          |
00000500  20 20 20 20 20 53 75 6e  20 41 75 67 20 31 37 20  |     Sun Aug 17 |
00000510  31 39 3a 30 36 3a 30 33  20 31 39 39 37 0a 2a 2a  |19:06:03 1997.**|
00000520  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 0a 2a 2a  |*************.**|
00000530  2a 20 35 2c 31 30 20 2a  2a 2a 2a 0a 2d 2d 2d 20  |* 5,10 ****.--- |
00000540  35 2c 31 34 20 2d 2d 2d  2d 0a 20 20 20 2a 20 43  |5,14 ----.   * C|
00000550  6f 70 79 72 69 67 68 74  20 28 63 29 20 31 39 38  |opyright (c) 198|
00000560  38 20 41 63 6f 72 6e 20  43 6f 6d 70 75 74 65 72  |8 Acorn Computer|
00000570  73 20 4c 74 64 2e 2c 20  43 61 6d 62 72 69 64 67  |s Ltd., Cambridg|
00000580  65 2c 20 45 6e 67 6c 61  6e 64 0a 20 20 20 2a 0a  |e, England.   *.|
00000590  20 20 20 2a 20 24 4c 6f  67 3a 20 69 6f 63 74 6c  |   * $Log: ioctl|
000005a0  2e 68 2c 76 20 24 0a 2b  20 20 2a 0a 2b 20 20 2a  |.h,v $.+  *.+  *|
000005b0  20 52 65 76 69 73 65 64  20 20 20 20 20 20 20 39  | Revised       9|
000005c0  37 2f 30 38 2f 31 36 20  20 72 67 61 6d 6d 61 6e  |7/08/16  rgamman|
000005d0  73 28 40 63 6f 6d 70 75  72 67 2e 64 65 6d 6f 6e  |s(@compurg.demon|
000005e0  2e 63 6f 2e 75 6b 29 0a  2b 20 20 2a 20 41 64 64  |.co.uk).+  * Add|
000005f0  65 64 20 20 46 49 4f 53  4c 45 45 50 54 57 20 66  |ed  FIOSLEEPTW f|
00000600  6f 72 20 46 72 65 65 6e  65 74 20 2f 72 69 73 63  |or Freenet /risc|
00000610  6f 73 0a 2b 20 20 2a 0a  20 20 20 2a 20 52 65 76  |os.+  *.   * Rev|
00000620  69 73 69 6f 6e 20 31 2e  35 20 20 39 35 2f 30 39  |ision 1.5  95/09|
00000630  2f 32 31 20 20 31 35 3a  32 31 3a 34 38 20 20 70  |/21  15:21:48  p|
00000640  77 61 69 6e 0a 20 20 20  2a 20 41 64 64 65 64 20  |wain.   * Added |
00000650  53 49 4f 43 47 49 46 4d  54 55 20 61 6e 64 20 53  |SIOCGIFMTU and S|
00000660  49 4f 43 53 49 46 4d 54  55 20 66 6f 72 20 50 50  |IOCSIFMTU for PP|
00000670  50 20 64 72 69 76 65 72  2e 0a 20 20 20 2a 0a 2a  |P driver..   *.*|
00000680  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 20 73  |************** s|
00000690  74 72 75 63 74 20 74 74  79 73 69 7a 65 20 0a 2a  |truct ttysize .*|
000006a0  2a 2a 20 32 37 35 2c 32  38 30 20 2a 2a 2a 2a 0a  |** 275,280 ****.|
000006b0  2d 2d 2d 20 32 37 39 2c  32 38 35 20 2d 2d 2d 2d  |--- 279,285 ----|
000006c0  0a 20 20 23 64 65 66 69  6e 65 20 46 49 4f 53 45  |.  #define FIOSE|
000006d0  54 4f 57 4e 20 5f 49 4f  57 28 27 66 27 2c 20 31  |TOWN _IOW('f', 1|
000006e0  32 34 2c 20 69 6e 74 29  20 20 20 2f 2a 20 73 65  |24, int)   /* se|
000006f0  74 20 6f 77 6e 65 72 20  2a 2f 0a 20 20 23 64 65  |t owner */.  #de|
00000700  66 69 6e 65 20 46 49 4f  47 45 54 4f 57 4e 20 5f  |fine FIOGETOWN _|
00000710  49 4f 52 28 27 66 27 2c  20 31 32 33 2c 20 69 6e  |IOR('f', 123, in|
00000720  74 29 20 20 20 2f 2a 20  67 65 74 20 6f 77 6e 65  |t)   /* get owne|
00000730  72 20 2a 2f 0a 20 20 23  64 65 66 69 6e 65 20 46  |r */.  #define F|
00000740  49 4f 52 58 44 49 52 20  5f 49 4f 57 28 27 66 27  |IORXDIR _IOW('f'|
00000750  2c 20 31 32 32 2c 20 69  6e 74 29 20 20 20 2f 2a  |, 122, int)   /*|
00000760  20 73 65 74 2f 63 6c 65  61 72 20 64 69 72 65 63  | set/clear direc|
00000770  74 20 72 78 20 2a 2f 0a  2b 20 23 64 65 66 69 6e  |t rx */.+ #defin|
00000780  65 20 46 49 4f 53 4c 45  45 50 54 57 20 20 20 20  |e FIOSLEEPTW    |
00000790  20 20 5f 49 4f 57 28 27  66 27 2c 20 31 32 31 2c  |  _IOW('f', 121,|
000007a0  20 69 6e 74 29 20 20 20  20 20 20 20 2f 2a 20 73  | int)       /* s|
000007b0  65 74 2f 63 6c 65 61 72  20 75 70 63 61 6c 6c 20  |et/clear upcall |
000007c0  36 20 75 73 65 20 2a 20  31 36 2f 38 2f 39 37 20  |6 use * 16/8/97 |
000007d0  52 47 47 20 2a 2f 0a 20  20 0a 20 20 2f 2a 20 73  |RGG */.  .  /* s|
000007e0  6f 63 6b 65 74 20 69 2f  6f 20 63 6f 6e 74 72 6f  |ocket i/o contro|
000007f0  6c 73 20 2a 2f 0a 20 20  23 64 65 66 69 6e 65 20  |ls */.  #define |
00000800  53 49 4f 43 53 48 49 57  41 54 20 5f 49 4f 57 28  |SIOCSHIWAT _IOW(|
00000810  27 73 27 2c 20 20 30 2c  20 69 6e 74 29 20 20 20  |'s',  0, int)   |
00000820  20 2f 2a 20 73 65 74 20  68 69 67 68 20 77 61 74  | /* set high wat|
00000830  65 72 6d 61 72 6b 20 2a  2f 0a 20 20 0a 2d 2d 2d  |ermark */.  .---|
00000840  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 20 45 6e 64 20  |----------- End |
00000850  64 69 66 66 27 73 0a                              |diff's.|
00000857