Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !SLIPdial/Resources/UK/Help/ipget

!SLIPdial/Resources/UK/Help/ipget

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 1995-04.adf » !Internet_StarterPak
Filename: !SLIPdial/Resources/UK/Help/ipget
Read OK:
File size: 0309 bytes
Load address: 0000
Exec address: 0000
File contents
ipget [/delay=<n>] [/auto] [<string>]
 waits for <string>, which should mark the start of a dynamically-assigned
 IP number. The rest of the number will then be captured. Example:
   ipget 134.
 The string:
   Your IP address is 134.84.101.42.
 is received. The IP number 134.84.101.42 is captured, into the script variable  "ipaddress", for use by the "make" or other commands. The variables ip1, ip2,
 ip3 amd ip4 are also set, to the four components of the IP address.

 If the /auto qualifier is used, no start string need be supplied. Slipdial
 will attempt to identify anything which looks like an IP address and set
 the "ipaddress" variable accordingly.

 The /delay qualifier sets the command timeout in seconds. If not specified,
 a timeout of 60 seconds is assumed.
00000000  69 70 67 65 74 20 5b 2f  64 65 6c 61 79 3d 3c 6e  |ipget [/delay=<n|
00000010  3e 5d 20 5b 2f 61 75 74  6f 5d 20 5b 3c 73 74 72  |>] [/auto] [<str|
00000020  69 6e 67 3e 5d 0a 20 77  61 69 74 73 20 66 6f 72  |ing>]. waits for|
00000030  20 3c 73 74 72 69 6e 67  3e 2c 20 77 68 69 63 68  | <string>, which|
00000040  20 73 68 6f 75 6c 64 20  6d 61 72 6b 20 74 68 65  | should mark the|
00000050  20 73 74 61 72 74 20 6f  66 20 61 20 64 79 6e 61  | start of a dyna|
00000060  6d 69 63 61 6c 6c 79 2d  61 73 73 69 67 6e 65 64  |mically-assigned|
00000070  0a 20 49 50 20 6e 75 6d  62 65 72 2e 20 54 68 65  |. IP number. The|
00000080  20 72 65 73 74 20 6f 66  20 74 68 65 20 6e 75 6d  | rest of the num|
00000090  62 65 72 20 77 69 6c 6c  20 74 68 65 6e 20 62 65  |ber will then be|
000000a0  20 63 61 70 74 75 72 65  64 2e 20 45 78 61 6d 70  | captured. Examp|
000000b0  6c 65 3a 0a 20 20 20 69  70 67 65 74 20 31 33 34  |le:.   ipget 134|
000000c0  2e 0a 20 54 68 65 20 73  74 72 69 6e 67 3a 0a 20  |.. The string:. |
000000d0  20 20 59 6f 75 72 20 49  50 20 61 64 64 72 65 73  |  Your IP addres|
000000e0  73 20 69 73 20 31 33 34  2e 38 34 2e 31 30 31 2e  |s is 134.84.101.|
000000f0  34 32 2e 0a 20 69 73 20  72 65 63 65 69 76 65 64  |42.. is received|
00000100  2e 20 54 68 65 20 49 50  20 6e 75 6d 62 65 72 20  |. The IP number |
00000110  31 33 34 2e 38 34 2e 31  30 31 2e 34 32 20 69 73  |134.84.101.42 is|
00000120  20 63 61 70 74 75 72 65  64 2c 20 69 6e 74 6f 20  | captured, into |
00000130  74 68 65 20 73 63 72 69  70 74 20 76 61 72 69 61  |the script varia|
00000140  62 6c 65 20 20 22 69 70  61 64 64 72 65 73 73 22  |ble  "ipaddress"|
00000150  2c 20 66 6f 72 20 75 73  65 20 62 79 20 74 68 65  |, for use by the|
00000160  20 22 6d 61 6b 65 22 20  6f 72 20 6f 74 68 65 72  | "make" or other|
00000170  20 63 6f 6d 6d 61 6e 64  73 2e 20 54 68 65 20 76  | commands. The v|
00000180  61 72 69 61 62 6c 65 73  20 69 70 31 2c 20 69 70  |ariables ip1, ip|
00000190  32 2c 0a 20 69 70 33 20  61 6d 64 20 69 70 34 20  |2,. ip3 amd ip4 |
000001a0  61 72 65 20 61 6c 73 6f  20 73 65 74 2c 20 74 6f  |are also set, to|
000001b0  20 74 68 65 20 66 6f 75  72 20 63 6f 6d 70 6f 6e  | the four compon|
000001c0  65 6e 74 73 20 6f 66 20  74 68 65 20 49 50 20 61  |ents of the IP a|
000001d0  64 64 72 65 73 73 2e 0a  0a 20 49 66 20 74 68 65  |ddress... If the|
000001e0  20 2f 61 75 74 6f 20 71  75 61 6c 69 66 69 65 72  | /auto qualifier|
000001f0  20 69 73 20 75 73 65 64  2c 20 6e 6f 20 73 74 61  | is used, no sta|
00000200  72 74 20 73 74 72 69 6e  67 20 6e 65 65 64 20 62  |rt string need b|
00000210  65 20 73 75 70 70 6c 69  65 64 2e 20 53 6c 69 70  |e supplied. Slip|
00000220  64 69 61 6c 0a 20 77 69  6c 6c 20 61 74 74 65 6d  |dial. will attem|
00000230  70 74 20 74 6f 20 69 64  65 6e 74 69 66 79 20 61  |pt to identify a|
00000240  6e 79 74 68 69 6e 67 20  77 68 69 63 68 20 6c 6f  |nything which lo|
00000250  6f 6b 73 20 6c 69 6b 65  20 61 6e 20 49 50 20 61  |oks like an IP a|
00000260  64 64 72 65 73 73 20 61  6e 64 20 73 65 74 0a 20  |ddress and set. |
00000270  74 68 65 20 22 69 70 61  64 64 72 65 73 73 22 20  |the "ipaddress" |
00000280  76 61 72 69 61 62 6c 65  20 61 63 63 6f 72 64 69  |variable accordi|
00000290  6e 67 6c 79 2e 0a 0a 20  54 68 65 20 2f 64 65 6c  |ngly... The /del|
000002a0  61 79 20 71 75 61 6c 69  66 69 65 72 20 73 65 74  |ay qualifier set|
000002b0  73 20 74 68 65 20 63 6f  6d 6d 61 6e 64 20 74 69  |s the command ti|
000002c0  6d 65 6f 75 74 20 69 6e  20 73 65 63 6f 6e 64 73  |meout in seconds|
000002d0  2e 20 49 66 20 6e 6f 74  20 73 70 65 63 69 66 69  |. If not specifi|
000002e0  65 64 2c 0a 20 61 20 74  69 6d 65 6f 75 74 20 6f  |ed,. a timeout o|
000002f0  66 20 36 30 20 73 65 63  6f 6e 64 73 20 69 73 20  |f 60 seconds is |
00000300  61 73 73 75 6d 65 64 2e  0a                       |assumed..|
00000309