Blitz (216/459)

From:Anton Reinauer
Date:16 Jan 2000 at 23:50:28
Subject:UDP Chat V2.7

Right, here's the update from V2.6- it should be on Aminet in a couple
of days: dev/basic/UDP_Chat.lha

Version 2.7 16/01/2000
------------
UDPHeader is V1.4, UDPFuncs are V1.6- Net protocol header is now in
with UDPHeader.
- This is an optimised version of V2.6, where nearly all the string work
is replaced by buffers and pointers (all Unreliable packet work is done
entirely with buffers now).
- Fixed the bug introduced in V2.6, where a Client would be disconnected
after a few seconds, after a second (or more) login(s).
- Data from Reliable and UnReliable Packets is now returned as a pointer
to a buffer with new a Function Get_Game_Data{}, so no more using
Security_Warning{}. :)

This is what was updated from V2.64

- It has Rodger Light's assembler bsdsocket access put in, instead of
the Blitz lib, so you can now start the program without Miami needing to
be running first. -*Many thanks* Rodger!!! :-)

- The documentation changed to HTML, to make things easier.

What I'll put in next is the Client-Server routines for game data-
shouldn't take long.

Then I'll remove all the string work, so Security_Warning{} and
Comms_Debug{} both will give back a pointer to a constant (which I'll
provide the defines for)- the reason I'll have a pointer, is that I'll
provide more info (a couple more longs, and a print-out function), for
the message, so you can still print out which player the message
pertains to etc. The number of extra longs will depend on the actual
message itself. Then I'll change the storing of messages to a buffer
instead of strings.

This will set it up so I can make these functions into an Amiga shared
lib! This will speed the routines up a lot, and allow C/E programmers
to use them as well. I will do it in assembler, as each program using
it will have to have it's own memory area (like Mildred does), and it
would horrible doing it in C (and a waste of time). Any other
suggestions for other ways of doing it- is there a way in C to change
the pointer to the variables?

Is there anything else, anyone wants desperately first- if not I'll do
the above after the Client-Server stuff.

After that I'll have a look at packet gathering if it's needed by
then, or maybe do a small game using them :)

Seeya- Anton



Anton Reinauer <ants@paradise.net.nz>
Project: UDP_Chat [99%]- an Internet multi-player code, test-bed
for my game Pyro-Mid. - Aminet: dev/basic/UDP_Chat.lha (V2.6)
http://homepages.paradise.net.nz/ants

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie