Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199801_2.adf » Regulars2 » StarInfo/Fletcher/!Setup/Files/Disc1/Program/NetGame/!NetGame/Help/NetGame

StarInfo/Fletcher/!Setup/Files/Disc1/Program/NetGame/!NetGame/Help/NetGame

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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199801_2.adf » Regulars2
Filename: StarInfo/Fletcher/!Setup/Files/Disc1/Program/NetGame/!NetGame/Help/NetGame
Read OK:
File size: 10A4 bytes
Load address: 0000
Exec address: 0000
File contents
HELP(�L,����$DIR$���G���`��s0FN�G������s�PROCG���M1`y�!RootLG���V��s�infoDIR$00�G���k��sLnetgame_DIR$LL0G������s�init�G���I�s�connectDATA�FNnetgame_init(port)
=>	{/}port{/}	port to listen on
<=	port we are listening on, or -1 if failed

Attempts to start the network game library.
DATA�FNnetgame_connect(to$,port)
=>	{/}to${/}	host to connect to
	{/}port{/}	port number to connect to
<=	TRUE if we are attempting a connection, FALSE if we failed

Attempts to establish a connection to a remote machine.
DIR$���
G������s�netgame_�G����^�s:connected$G����s�disconnected�G�����s�incomingFREE��	�G���)��s�finaltG���'��s�pollG���B��sRdisconnectpG���x��sxsendDATA�PROCnetgame_final
#Parent !Root
Closesdown the NetGame library.

You should call this before exiting, otherwise connections will not be closed.
DATA�PROCnetgame_poll
#Parent !Root
Checks the state of the network game. You should call this every so often (eg, on <Wimp_PollIdle=>SWI:Wimp_Poll> null events).
DATARPROCnetgame_disconnect
#Parent !Root
Disconnects us from the 'other end'.
DATAxPROCnetgame_send(msg$)
#Parent !Root
=>	{/}msg${/}	message to send

Sends a text message to the other computer.
DATA:PROCconnected(host$,type)
#Parent !Root
=>	{/}host${/}	host we've connected to
	{/}type{/}	type of connection :
	 		 {/}ngs_originate{/}	if we initiated the connection
	 		 {/}ngs_answer{/}	if we answered the connection

This routine will be called by the NetGame Library when a connection is established.
DATA�PROCdisconnected(type)
#Parent !Root
=>	{/}type{/}	type of disconnection :
	 		 {/}ngs_dead{/}		if they dropped the connection, or gave an invalid response
	 		 {/}ngs_going{/}	if they declared that they were leaving first
	 		 {/}ngs_failed{/}	if a <FNnetgame_connect> call could not be satisfied after returning TRUE

This routine will be called by the NetGame Library when a connection is closing.
DATA�PROCincoming(msg$)
#Parent !Root
=>	{/}msg${/}	the message the sent

This routine will be called by the NetGame Library when a message is received from the other end of the connection.

FREE~����ameLib routines
#Parent StrongHelp:!Root
Library routines
#Indent 2
#Table Columns 3
<FNnetgame_init>
<PROCnetgameDATA�PROCnetgame_poll
#Parent !Root
Checks the state of the network game. You should call this every so often (eg, on <Wimp_PollIdle=>SWI:Wimp_Poll> null events).
<PDIR$���G���)��s�finaltG���'��s�pollG���B��sRdisconnectpG���x��sxsend
G���'��s�readsites��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������DATA�NetGameLib help
#Align Centre
{fh3}NetGame Library v1.00{f}
#Align Left

The NetGame library is a Basic library file which allows you to write - relatively easily - a two player network game. It will automatically include the <Heap Library=>HeapLib:!Root> and <Socket Library=>SocketLib:!Root> files to help in it's job - Don't re-include them.

To use the NetGame library, use something like :

{fCode}LIBRARY "\<NetGameLibrary$File>":port=<FNnetgame_init>({/}port{/}){f}

The NetGame application is � Justin Fletcher, 1997 and is released into the Public Domain with the same restrictions as subsist in most PD software. This includes the fact that when distributed the entire application must remain intact.DATA�NetGameLib routines
#Parent StrongHelp:!Root
Library routines
#Indent 2
#Table Columns 3
<FNnetgame_init>
<PROCnetgame_final>
<PROCnetgame_poll>
<FNnetgame_connect>
<PROCnetgame_disconnect>
<PROCnetgame_send>
#EndTable
#Indent


User supplied routines :
#Indent 2
#Table Columns 3
<PROCconnected>
<PROCdiconnected>
<PROCincoming>
#EndTable
#Indent

<Information=>info> on NetGameLib
00000000  48 45 4c 50 28 00 00 00  cb 00 00 00 4c 03 00 00  |HELP(.......L...|
00000010  2c 00 00 00 00 fd ff ff  00 00 00 00 80 00 00 00  |,...............|
00000020  00 01 00 00 00 00 00 00  24 00 00 00 44 49 52 24  |........$...DIR$|
00000030  88 00 00 00 88 00 00 00  b4 00 00 00 47 fd ff ff  |............G...|
00000040  60 f4 d7 73 30 00 00 00  13 01 00 00 00 00 00 00  |`..s0...........|
00000050  46 4e 00 00 ac 02 00 00  47 fd ff ff ae f4 d7 73  |FN......G......s|
00000060  a0 00 00 00 13 01 00 00  00 00 00 00 50 52 4f 43  |............PROC|
00000070  00 00 00 00 1c 0f 00 00  47 fd ff ff 4d 31 60 79  |........G...M1`y|
00000080  87 01 00 00 13 00 00 00  00 00 00 00 21 52 6f 6f  |............!Roo|
00000090  74 00 00 00 4c 0c 00 00  47 fd ff ff 56 cf d6 73  |t...L...G...V..s|
000000a0  ce 02 00 00 13 00 00 00  00 00 00 00 69 6e 66 6f  |............info|
000000b0  00 00 00 00 44 49 52 24  30 00 00 00 30 00 00 00  |....DIR$0...0...|
000000c0  e4 00 00 00 47 fd ff ff  6b f4 d7 73 4c 00 00 00  |....G...k..sL...|
000000d0  13 01 00 00 00 00 00 00  6e 65 74 67 61 6d 65 5f  |........netgame_|
000000e0  00 00 00 00 44 49 52 24  4c 00 00 00 4c 00 00 00  |....DIR$L...L...|
000000f0  30 01 00 00 47 ff ff ff  81 ab c2 73 97 00 00 00  |0...G......s....|
00000100  13 00 00 00 00 00 00 00  69 6e 69 74 00 00 00 00  |........init....|
00000110  c8 01 00 00 47 ff ff ff  49 1d c3 73 e1 00 00 00  |....G...I..s....|
00000120  13 00 00 00 00 00 00 00  63 6f 6e 6e 65 63 74 00  |........connect.|
00000130  44 41 54 41 97 00 00 00  46 4e 6e 65 74 67 61 6d  |DATA....FNnetgam|
00000140  65 5f 69 6e 69 74 28 70  6f 72 74 29 0a 3d 3e 09  |e_init(port).=>.|
00000150  7b 2f 7d 70 6f 72 74 7b  2f 7d 09 70 6f 72 74 20  |{/}port{/}.port |
00000160  74 6f 20 6c 69 73 74 65  6e 20 6f 6e 0a 3c 3d 09  |to listen on.<=.|
00000170  70 6f 72 74 20 77 65 20  61 72 65 20 6c 69 73 74  |port we are list|
00000180  65 6e 69 6e 67 20 6f 6e  2c 20 6f 72 20 2d 31 20  |ening on, or -1 |
00000190  69 66 20 66 61 69 6c 65  64 0a 0a 41 74 74 65 6d  |if failed..Attem|
000001a0  70 74 73 20 74 6f 20 73  74 61 72 74 20 74 68 65  |pts to start the|
000001b0  20 6e 65 74 77 6f 72 6b  20 67 61 6d 65 20 6c 69  | network game li|
000001c0  62 72 61 72 79 2e 0a 00  44 41 54 41 e1 00 00 00  |brary...DATA....|
000001d0  46 4e 6e 65 74 67 61 6d  65 5f 63 6f 6e 6e 65 63  |FNnetgame_connec|
000001e0  74 28 74 6f 24 2c 70 6f  72 74 29 0a 3d 3e 09 7b  |t(to$,port).=>.{|
000001f0  2f 7d 74 6f 24 7b 2f 7d  09 68 6f 73 74 20 74 6f  |/}to${/}.host to|
00000200  20 63 6f 6e 6e 65 63 74  20 74 6f 0a 09 7b 2f 7d  | connect to..{/}|
00000210  70 6f 72 74 7b 2f 7d 09  70 6f 72 74 20 6e 75 6d  |port{/}.port num|
00000220  62 65 72 20 74 6f 20 63  6f 6e 6e 65 63 74 20 74  |ber to connect t|
00000230  6f 0a 3c 3d 09 54 52 55  45 20 69 66 20 77 65 20  |o.<=.TRUE if we |
00000240  61 72 65 20 61 74 74 65  6d 70 74 69 6e 67 20 61  |are attempting a|
00000250  20 63 6f 6e 6e 65 63 74  69 6f 6e 2c 20 46 41 4c  | connection, FAL|
00000260  53 45 20 69 66 20 77 65  20 66 61 69 6c 65 64 0a  |SE if we failed.|
00000270  0a 41 74 74 65 6d 70 74  73 20 74 6f 20 65 73 74  |.Attempts to est|
00000280  61 62 6c 69 73 68 20 61  20 63 6f 6e 6e 65 63 74  |ablish a connect|
00000290  69 6f 6e 20 74 6f 20 61  20 72 65 6d 6f 74 65 20  |ion to a remote |
000002a0  6d 61 63 68 69 6e 65 2e  0a 00 00 00 44 49 52 24  |machine.....DIR$|
000002b0  a0 00 00 00 a0 00 00 00  aa 0a 00 00 47 fd ff ff  |............G...|
000002c0  da f4 d7 73 a0 01 00 00  13 01 00 00 00 00 00 00  |...s............|
000002d0  6e 65 74 67 61 6d 65 5f  00 00 00 00 e8 05 00 00  |netgame_........|
000002e0  47 ff ff ff f7 5e c4 73  3a 01 00 00 13 00 00 00  |G....^.s:.......|
000002f0  00 00 00 00 63 6f 6e 6e  65 63 74 65 64 00 00 00  |....connected...|
00000300  24 07 00 00 47 ff ff ff  12 18 d6 73 99 01 00 00  |$...G......s....|
00000310  13 00 00 00 00 00 00 00  64 69 73 63 6f 6e 6e 65  |........disconne|
00000320  63 74 65 64 00 00 00 00  c0 08 00 00 47 ff ff ff  |cted........G...|
00000330  0c e5 c3 73 c2 00 00 00  13 00 00 00 00 00 00 00  |...s............|
00000340  69 6e 63 6f 6d 69 6e 67  00 00 00 00 46 52 45 45  |incoming....FREE|
00000350  90 00 00 00 84 09 00 00  dc 03 00 00 47 ff ff ff  |............G...|
00000360  29 ad c3 73 98 00 00 00  13 00 00 00 00 00 00 00  |)..s............|
00000370  66 69 6e 61 6c 00 00 00  74 04 00 00 47 ff ff ff  |final...t...G...|
00000380  27 b0 c3 73 a6 00 00 00  13 00 00 00 00 00 00 00  |'..s............|
00000390  70 6f 6c 6c 00 00 00 00  1c 05 00 00 47 ff ff ff  |poll........G...|
000003a0  42 aa c3 73 52 00 00 00  13 00 00 00 00 00 00 00  |B..sR...........|
000003b0  64 69 73 63 6f 6e 6e 65  63 74 00 00 70 05 00 00  |disconnect..p...|
000003c0  47 ff ff ff 78 b2 c3 73  78 00 00 00 13 00 00 00  |G...x..sx.......|
000003d0  00 00 00 00 73 65 6e 64  00 00 00 00 44 41 54 41  |....send....DATA|
000003e0  98 00 00 00 50 52 4f 43  6e 65 74 67 61 6d 65 5f  |....PROCnetgame_|
000003f0  66 69 6e 61 6c 0a 23 50  61 72 65 6e 74 20 21 52  |final.#Parent !R|
00000400  6f 6f 74 0a 43 6c 6f 73  65 73 64 6f 77 6e 20 74  |oot.Closesdown t|
00000410  68 65 20 4e 65 74 47 61  6d 65 20 6c 69 62 72 61  |he NetGame libra|
00000420  72 79 2e 0a 0a 59 6f 75  20 73 68 6f 75 6c 64 20  |ry...You should |
00000430  63 61 6c 6c 20 74 68 69  73 20 62 65 66 6f 72 65  |call this before|
00000440  20 65 78 69 74 69 6e 67  2c 20 6f 74 68 65 72 77  | exiting, otherw|
00000450  69 73 65 20 63 6f 6e 6e  65 63 74 69 6f 6e 73 20  |ise connections |
00000460  77 69 6c 6c 20 6e 6f 74  20 62 65 20 63 6c 6f 73  |will not be clos|
00000470  65 64 2e 0a 44 41 54 41  a6 00 00 00 50 52 4f 43  |ed..DATA....PROC|
00000480  6e 65 74 67 61 6d 65 5f  70 6f 6c 6c 0a 23 50 61  |netgame_poll.#Pa|
00000490  72 65 6e 74 20 21 52 6f  6f 74 0a 43 68 65 63 6b  |rent !Root.Check|
000004a0  73 20 74 68 65 20 73 74  61 74 65 20 6f 66 20 74  |s the state of t|
000004b0  68 65 20 6e 65 74 77 6f  72 6b 20 67 61 6d 65 2e  |he network game.|
000004c0  20 59 6f 75 20 73 68 6f  75 6c 64 20 63 61 6c 6c  | You should call|
000004d0  20 74 68 69 73 20 65 76  65 72 79 20 73 6f 20 6f  | this every so o|
000004e0  66 74 65 6e 20 28 65 67  2c 20 6f 6e 20 3c 57 69  |ften (eg, on <Wi|
000004f0  6d 70 5f 50 6f 6c 6c 49  64 6c 65 3d 3e 53 57 49  |mp_PollIdle=>SWI|
00000500  3a 57 69 6d 70 5f 50 6f  6c 6c 3e 20 6e 75 6c 6c  |:Wimp_Poll> null|
00000510  20 65 76 65 6e 74 73 29  2e 0a 00 00 44 41 54 41  | events)....DATA|
00000520  52 00 00 00 50 52 4f 43  6e 65 74 67 61 6d 65 5f  |R...PROCnetgame_|
00000530  64 69 73 63 6f 6e 6e 65  63 74 0a 23 50 61 72 65  |disconnect.#Pare|
00000540  6e 74 20 21 52 6f 6f 74  0a 44 69 73 63 6f 6e 6e  |nt !Root.Disconn|
00000550  65 63 74 73 20 75 73 20  66 72 6f 6d 20 74 68 65  |ects us from the|
00000560  20 27 6f 74 68 65 72 20  65 6e 64 27 2e 0a 00 00  | 'other end'....|
00000570  44 41 54 41 78 00 00 00  50 52 4f 43 6e 65 74 67  |DATAx...PROCnetg|
00000580  61 6d 65 5f 73 65 6e 64  28 6d 73 67 24 29 0a 23  |ame_send(msg$).#|
00000590  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 3d 3e 09  |Parent !Root.=>.|
000005a0  7b 2f 7d 6d 73 67 24 7b  2f 7d 09 6d 65 73 73 61  |{/}msg${/}.messa|
000005b0  67 65 20 74 6f 20 73 65  6e 64 0a 0a 53 65 6e 64  |ge to send..Send|
000005c0  73 20 61 20 74 65 78 74  20 6d 65 73 73 61 67 65  |s a text message|
000005d0  20 74 6f 20 74 68 65 20  6f 74 68 65 72 20 63 6f  | to the other co|
000005e0  6d 70 75 74 65 72 2e 0a  44 41 54 41 3a 01 00 00  |mputer..DATA:...|
000005f0  50 52 4f 43 63 6f 6e 6e  65 63 74 65 64 28 68 6f  |PROCconnected(ho|
00000600  73 74 24 2c 74 79 70 65  29 0a 23 50 61 72 65 6e  |st$,type).#Paren|
00000610  74 20 21 52 6f 6f 74 0a  3d 3e 09 7b 2f 7d 68 6f  |t !Root.=>.{/}ho|
00000620  73 74 24 7b 2f 7d 09 68  6f 73 74 20 77 65 27 76  |st${/}.host we'v|
00000630  65 20 63 6f 6e 6e 65 63  74 65 64 20 74 6f 0a 09  |e connected to..|
00000640  7b 2f 7d 74 79 70 65 7b  2f 7d 09 74 79 70 65 20  |{/}type{/}.type |
00000650  6f 66 20 63 6f 6e 6e 65  63 74 69 6f 6e 20 3a 0a  |of connection :.|
00000660  09 20 09 09 20 7b 2f 7d  6e 67 73 5f 6f 72 69 67  |. .. {/}ngs_orig|
00000670  69 6e 61 74 65 7b 2f 7d  09 69 66 20 77 65 20 69  |inate{/}.if we i|
00000680  6e 69 74 69 61 74 65 64  20 74 68 65 20 63 6f 6e  |nitiated the con|
00000690  6e 65 63 74 69 6f 6e 0a  09 20 09 09 20 7b 2f 7d  |nection.. .. {/}|
000006a0  6e 67 73 5f 61 6e 73 77  65 72 7b 2f 7d 09 69 66  |ngs_answer{/}.if|
000006b0  20 77 65 20 61 6e 73 77  65 72 65 64 20 74 68 65  | we answered the|
000006c0  20 63 6f 6e 6e 65 63 74  69 6f 6e 0a 0a 54 68 69  | connection..Thi|
000006d0  73 20 72 6f 75 74 69 6e  65 20 77 69 6c 6c 20 62  |s routine will b|
000006e0  65 20 63 61 6c 6c 65 64  20 62 79 20 74 68 65 20  |e called by the |
000006f0  4e 65 74 47 61 6d 65 20  4c 69 62 72 61 72 79 20  |NetGame Library |
00000700  77 68 65 6e 20 61 20 63  6f 6e 6e 65 63 74 69 6f  |when a connectio|
00000710  6e 20 69 73 20 65 73 74  61 62 6c 69 73 68 65 64  |n is established|
00000720  2e 0a 00 00 44 41 54 41  99 01 00 00 50 52 4f 43  |....DATA....PROC|
00000730  64 69 73 63 6f 6e 6e 65  63 74 65 64 28 74 79 70  |disconnected(typ|
00000740  65 29 0a 23 50 61 72 65  6e 74 20 21 52 6f 6f 74  |e).#Parent !Root|
00000750  0a 3d 3e 09 7b 2f 7d 74  79 70 65 7b 2f 7d 09 74  |.=>.{/}type{/}.t|
00000760  79 70 65 20 6f 66 20 64  69 73 63 6f 6e 6e 65 63  |ype of disconnec|
00000770  74 69 6f 6e 20 3a 0a 09  20 09 09 20 7b 2f 7d 6e  |tion :.. .. {/}n|
00000780  67 73 5f 64 65 61 64 7b  2f 7d 09 09 69 66 20 74  |gs_dead{/}..if t|
00000790  68 65 79 20 64 72 6f 70  70 65 64 20 74 68 65 20  |hey dropped the |
000007a0  63 6f 6e 6e 65 63 74 69  6f 6e 2c 20 6f 72 20 67  |connection, or g|
000007b0  61 76 65 20 61 6e 20 69  6e 76 61 6c 69 64 20 72  |ave an invalid r|
000007c0  65 73 70 6f 6e 73 65 0a  09 20 09 09 20 7b 2f 7d  |esponse.. .. {/}|
000007d0  6e 67 73 5f 67 6f 69 6e  67 7b 2f 7d 09 69 66 20  |ngs_going{/}.if |
000007e0  74 68 65 79 20 64 65 63  6c 61 72 65 64 20 74 68  |they declared th|
000007f0  61 74 20 74 68 65 79 20  77 65 72 65 20 6c 65 61  |at they were lea|
00000800  76 69 6e 67 20 66 69 72  73 74 0a 09 20 09 09 20  |ving first.. .. |
00000810  7b 2f 7d 6e 67 73 5f 66  61 69 6c 65 64 7b 2f 7d  |{/}ngs_failed{/}|
00000820  09 69 66 20 61 20 3c 46  4e 6e 65 74 67 61 6d 65  |.if a <FNnetgame|
00000830  5f 63 6f 6e 6e 65 63 74  3e 20 63 61 6c 6c 20 63  |_connect> call c|
00000840  6f 75 6c 64 20 6e 6f 74  20 62 65 20 73 61 74 69  |ould not be sati|
00000850  73 66 69 65 64 20 61 66  74 65 72 20 72 65 74 75  |sfied after retu|
00000860  72 6e 69 6e 67 20 54 52  55 45 0a 0a 54 68 69 73  |rning TRUE..This|
00000870  20 72 6f 75 74 69 6e 65  20 77 69 6c 6c 20 62 65  | routine will be|
00000880  20 63 61 6c 6c 65 64 20  62 79 20 74 68 65 20 4e  | called by the N|
00000890  65 74 47 61 6d 65 20 4c  69 62 72 61 72 79 20 77  |etGame Library w|
000008a0  68 65 6e 20 61 20 63 6f  6e 6e 65 63 74 69 6f 6e  |hen a connection|
000008b0  20 69 73 20 63 6c 6f 73  69 6e 67 2e 0a 00 00 00  | is closing.....|
000008c0  44 41 54 41 c2 00 00 00  50 52 4f 43 69 6e 63 6f  |DATA....PROCinco|
000008d0  6d 69 6e 67 28 6d 73 67  24 29 0a 23 50 61 72 65  |ming(msg$).#Pare|
000008e0  6e 74 20 21 52 6f 6f 74  0a 3d 3e 09 7b 2f 7d 6d  |nt !Root.=>.{/}m|
000008f0  73 67 24 7b 2f 7d 09 74  68 65 20 6d 65 73 73 61  |sg${/}.the messa|
00000900  67 65 20 74 68 65 20 73  65 6e 74 0a 0a 54 68 69  |ge the sent..Thi|
00000910  73 20 72 6f 75 74 69 6e  65 20 77 69 6c 6c 20 62  |s routine will b|
00000920  65 20 63 61 6c 6c 65 64  20 62 79 20 74 68 65 20  |e called by the |
00000930  4e 65 74 47 61 6d 65 20  4c 69 62 72 61 72 79 20  |NetGame Library |
00000940  77 68 65 6e 20 61 20 6d  65 73 73 61 67 65 20 69  |when a message i|
00000950  73 20 72 65 63 65 69 76  65 64 20 66 72 6f 6d 20  |s received from |
00000960  74 68 65 20 6f 74 68 65  72 20 65 6e 64 20 6f 66  |the other end of|
00000970  20 74 68 65 20 63 6f 6e  6e 65 63 74 69 6f 6e 2e  | the connection.|
00000980  0a 0a 00 00 46 52 45 45  7e 00 00 00 ff ff ff ff  |....FREE~.......|
00000990  61 6d 65 4c 69 62 20 72  6f 75 74 69 6e 65 73 0a  |ameLib routines.|
000009a0  23 50 61 72 65 6e 74 20  53 74 72 6f 6e 67 48 65  |#Parent StrongHe|
000009b0  6c 70 3a 21 52 6f 6f 74  0a 4c 69 62 72 61 72 79  |lp:!Root.Library|
000009c0  20 72 6f 75 74 69 6e 65  73 0a 23 49 6e 64 65 6e  | routines.#Inden|
000009d0  74 20 32 0a 23 54 61 62  6c 65 20 43 6f 6c 75 6d  |t 2.#Table Colum|
000009e0  6e 73 20 33 0a 3c 46 4e  6e 65 74 67 61 6d 65 5f  |ns 3.<FNnetgame_|
000009f0  69 6e 69 74 3e 0a 3c 50  52 4f 43 6e 65 74 67 61  |init>.<PROCnetga|
00000a00  6d 65 44 41 54 41 a6 00  00 00 50 52 4f 43 6e 65  |meDATA....PROCne|
00000a10  74 67 61 6d 65 5f 70 6f  6c 6c 0a 23 50 61 72 65  |tgame_poll.#Pare|
00000a20  6e 74 20 21 52 6f 6f 74  0a 43 68 65 63 6b 73 20  |nt !Root.Checks |
00000a30  74 68 65 20 73 74 61 74  65 20 6f 66 20 74 68 65  |the state of the|
00000a40  20 6e 65 74 77 6f 72 6b  20 67 61 6d 65 2e 20 59  | network game. Y|
00000a50  6f 75 20 73 68 6f 75 6c  64 20 63 61 6c 6c 20 74  |ou should call t|
00000a60  68 69 73 20 65 76 65 72  79 20 73 6f 20 6f 66 74  |his every so oft|
00000a70  65 6e 20 28 65 67 2c 20  6f 6e 20 3c 57 69 6d 70  |en (eg, on <Wimp|
00000a80  5f 50 6f 6c 6c 49 64 6c  65 3d 3e 53 57 49 3a 57  |_PollIdle=>SWI:W|
00000a90  69 6d 70 5f 50 6f 6c 6c  3e 20 6e 75 6c 6c 20 65  |imp_Poll> null e|
00000aa0  76 65 6e 74 73 29 2e 0a  3c 50 44 49 52 24 a0 01  |vents)..<PDIR$..|
00000ab0  00 00 b4 00 00 00 dc 03  00 00 47 ff ff ff 29 ad  |..........G...).|
00000ac0  c3 73 98 00 00 00 13 00  00 00 00 00 00 00 66 69  |.s............fi|
00000ad0  6e 61 6c 00 00 00 74 04  00 00 47 ff ff ff 27 b0  |nal...t...G...'.|
00000ae0  c3 73 a6 00 00 00 13 00  00 00 00 00 00 00 70 6f  |.s............po|
00000af0  6c 6c 00 00 00 00 1c 05  00 00 47 ff ff ff 42 aa  |ll........G...B.|
00000b00  c3 73 52 00 00 00 13 00  00 00 00 00 00 00 64 69  |.sR...........di|
00000b10  73 63 6f 6e 6e 65 63 74  00 00 70 05 00 00 47 ff  |sconnect..p...G.|
00000b20  ff ff 78 b2 c3 73 78 00  00 00 13 00 00 00 00 00  |..x..sx.........|
00000b30  00 00 73 65 6e 64 00 00  00 00 02 0a 00 00 47 ff  |..send........G.|
00000b40  ff ff 27 b0 c3 73 a6 00  00 00 13 00 00 00 00 00  |..'..s..........|
00000b50  00 00 72 65 61 64 73 69  74 65 73 00 00 00 ff ff  |..readsites.....|
00000b60  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000c40  ff ff ff ff ff ff ff ff  ff ff 00 00 44 41 54 41  |............DATA|
00000c50  ce 02 00 00 4e 65 74 47  61 6d 65 4c 69 62 20 68  |....NetGameLib h|
00000c60  65 6c 70 0a 23 41 6c 69  67 6e 20 43 65 6e 74 72  |elp.#Align Centr|
00000c70  65 0a 7b 66 68 33 7d 4e  65 74 47 61 6d 65 20 4c  |e.{fh3}NetGame L|
00000c80  69 62 72 61 72 79 20 76  31 2e 30 30 7b 66 7d 0a  |ibrary v1.00{f}.|
00000c90  23 41 6c 69 67 6e 20 4c  65 66 74 0a 0a 54 68 65  |#Align Left..The|
00000ca0  20 4e 65 74 47 61 6d 65  20 6c 69 62 72 61 72 79  | NetGame library|
00000cb0  20 69 73 20 61 20 42 61  73 69 63 20 6c 69 62 72  | is a Basic libr|
00000cc0  61 72 79 20 66 69 6c 65  20 77 68 69 63 68 20 61  |ary file which a|
00000cd0  6c 6c 6f 77 73 20 79 6f  75 20 74 6f 20 77 72 69  |llows you to wri|
00000ce0  74 65 20 2d 20 72 65 6c  61 74 69 76 65 6c 79 20  |te - relatively |
00000cf0  65 61 73 69 6c 79 20 2d  20 61 20 74 77 6f 20 70  |easily - a two p|
00000d00  6c 61 79 65 72 20 6e 65  74 77 6f 72 6b 20 67 61  |layer network ga|
00000d10  6d 65 2e 20 49 74 20 77  69 6c 6c 20 61 75 74 6f  |me. It will auto|
00000d20  6d 61 74 69 63 61 6c 6c  79 20 69 6e 63 6c 75 64  |matically includ|
00000d30  65 20 74 68 65 20 3c 48  65 61 70 20 4c 69 62 72  |e the <Heap Libr|
00000d40  61 72 79 3d 3e 48 65 61  70 4c 69 62 3a 21 52 6f  |ary=>HeapLib:!Ro|
00000d50  6f 74 3e 20 61 6e 64 20  3c 53 6f 63 6b 65 74 20  |ot> and <Socket |
00000d60  4c 69 62 72 61 72 79 3d  3e 53 6f 63 6b 65 74 4c  |Library=>SocketL|
00000d70  69 62 3a 21 52 6f 6f 74  3e 20 66 69 6c 65 73 20  |ib:!Root> files |
00000d80  74 6f 20 68 65 6c 70 20  69 6e 20 69 74 27 73 20  |to help in it's |
00000d90  6a 6f 62 20 2d 20 44 6f  6e 27 74 20 72 65 2d 69  |job - Don't re-i|
00000da0  6e 63 6c 75 64 65 20 74  68 65 6d 2e 0a 0a 54 6f  |nclude them...To|
00000db0  20 75 73 65 20 74 68 65  20 4e 65 74 47 61 6d 65  | use the NetGame|
00000dc0  20 6c 69 62 72 61 72 79  2c 20 75 73 65 20 73 6f  | library, use so|
00000dd0  6d 65 74 68 69 6e 67 20  6c 69 6b 65 20 3a 0a 0a  |mething like :..|
00000de0  7b 66 43 6f 64 65 7d 4c  49 42 52 41 52 59 20 22  |{fCode}LIBRARY "|
00000df0  5c 3c 4e 65 74 47 61 6d  65 4c 69 62 72 61 72 79  |\<NetGameLibrary|
00000e00  24 46 69 6c 65 3e 22 3a  70 6f 72 74 3d 3c 46 4e  |$File>":port=<FN|
00000e10  6e 65 74 67 61 6d 65 5f  69 6e 69 74 3e 28 7b 2f  |netgame_init>({/|
00000e20  7d 70 6f 72 74 7b 2f 7d  29 7b 66 7d 0a 0a 54 68  |}port{/}){f}..Th|
00000e30  65 20 4e 65 74 47 61 6d  65 20 61 70 70 6c 69 63  |e NetGame applic|
00000e40  61 74 69 6f 6e 20 69 73  20 a9 20 4a 75 73 74 69  |ation is . Justi|
00000e50  6e 20 46 6c 65 74 63 68  65 72 2c 20 31 39 39 37  |n Fletcher, 1997|
00000e60  20 61 6e 64 20 69 73 20  72 65 6c 65 61 73 65 64  | and is released|
00000e70  20 69 6e 74 6f 20 74 68  65 20 50 75 62 6c 69 63  | into the Public|
00000e80  20 44 6f 6d 61 69 6e 20  77 69 74 68 20 74 68 65  | Domain with the|
00000e90  20 73 61 6d 65 20 72 65  73 74 72 69 63 74 69 6f  | same restrictio|
00000ea0  6e 73 20 61 73 20 73 75  62 73 69 73 74 20 69 6e  |ns as subsist in|
00000eb0  20 6d 6f 73 74 20 50 44  20 73 6f 66 74 77 61 72  | most PD softwar|
00000ec0  65 2e 20 54 68 69 73 20  69 6e 63 6c 75 64 65 73  |e. This includes|
00000ed0  20 74 68 65 20 66 61 63  74 20 74 68 61 74 20 77  | the fact that w|
00000ee0  68 65 6e 20 64 69 73 74  72 69 62 75 74 65 64 20  |hen distributed |
00000ef0  74 68 65 20 65 6e 74 69  72 65 20 61 70 70 6c 69  |the entire appli|
00000f00  63 61 74 69 6f 6e 20 6d  75 73 74 20 72 65 6d 61  |cation must rema|
00000f10  69 6e 20 69 6e 74 61 63  74 2e 00 00 44 41 54 41  |in intact...DATA|
00000f20  87 01 00 00 4e 65 74 47  61 6d 65 4c 69 62 20 72  |....NetGameLib r|
00000f30  6f 75 74 69 6e 65 73 0a  23 50 61 72 65 6e 74 20  |outines.#Parent |
00000f40  53 74 72 6f 6e 67 48 65  6c 70 3a 21 52 6f 6f 74  |StrongHelp:!Root|
00000f50  0a 4c 69 62 72 61 72 79  20 72 6f 75 74 69 6e 65  |.Library routine|
00000f60  73 0a 23 49 6e 64 65 6e  74 20 32 0a 23 54 61 62  |s.#Indent 2.#Tab|
00000f70  6c 65 20 43 6f 6c 75 6d  6e 73 20 33 0a 3c 46 4e  |le Columns 3.<FN|
00000f80  6e 65 74 67 61 6d 65 5f  69 6e 69 74 3e 0a 3c 50  |netgame_init>.<P|
00000f90  52 4f 43 6e 65 74 67 61  6d 65 5f 66 69 6e 61 6c  |ROCnetgame_final|
00000fa0  3e 0a 3c 50 52 4f 43 6e  65 74 67 61 6d 65 5f 70  |>.<PROCnetgame_p|
00000fb0  6f 6c 6c 3e 0a 3c 46 4e  6e 65 74 67 61 6d 65 5f  |oll>.<FNnetgame_|
00000fc0  63 6f 6e 6e 65 63 74 3e  0a 3c 50 52 4f 43 6e 65  |connect>.<PROCne|
00000fd0  74 67 61 6d 65 5f 64 69  73 63 6f 6e 6e 65 63 74  |tgame_disconnect|
00000fe0  3e 0a 3c 50 52 4f 43 6e  65 74 67 61 6d 65 5f 73  |>.<PROCnetgame_s|
00000ff0  65 6e 64 3e 0a 23 45 6e  64 54 61 62 6c 65 0a 23  |end>.#EndTable.#|
00001000  49 6e 64 65 6e 74 0a 0a  0a 55 73 65 72 20 73 75  |Indent...User su|
00001010  70 70 6c 69 65 64 20 72  6f 75 74 69 6e 65 73 20  |pplied routines |
00001020  3a 0a 23 49 6e 64 65 6e  74 20 32 0a 23 54 61 62  |:.#Indent 2.#Tab|
00001030  6c 65 20 43 6f 6c 75 6d  6e 73 20 33 0a 3c 50 52  |le Columns 3.<PR|
00001040  4f 43 63 6f 6e 6e 65 63  74 65 64 3e 0a 3c 50 52  |OCconnected>.<PR|
00001050  4f 43 64 69 63 6f 6e 6e  65 63 74 65 64 3e 0a 3c  |OCdiconnected>.<|
00001060  50 52 4f 43 69 6e 63 6f  6d 69 6e 67 3e 0a 23 45  |PROCincoming>.#E|
00001070  6e 64 54 61 62 6c 65 0a  23 49 6e 64 65 6e 74 0a  |ndTable.#Indent.|
00001080  0a 3c 49 6e 66 6f 72 6d  61 74 69 6f 6e 3d 3e 69  |.<Information=>i|
00001090  6e 66 6f 3e 20 6f 6e 20  4e 65 74 47 61 6d 65 4c  |nfo> on NetGameL|
000010a0  69 62 0a 00                                       |ib..|
000010a4