Lol, yeah, again... a big mess. :) But it's looking like I might have to
do just that. Any ideas?

Persuter

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:hlcoders-
> [EMAIL PROTECTED]] On Behalf Of Jim Hunter
> Sent: Thursday, June 27, 2002 11:20 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [hlcoders] Moving large amounts of data from client to
server
>
> Resending this since I sent it from the wrong account before and it
> bounced.
>
> > > B)      Instead of sending an updatedata command for each field,
> encode
> > > the data into a big long char stream and send it over. First of
all,
> > > there are problems with sending encoded chars, specifically the
> problem
> > > of 0. Obviously I can constrain a short to 255*255, but this is
just
> >
> > You could avoid the 0 problem by using some value (say 1) as a sort
of
> > "escape" value, which would have an additional byte following it to
> > designate whether it represents 0 (say 0x02) or 1 (say 0x01).  So
> anywhere
> > you have 0x00 in your data, you transmit 0x01 0x02 and anywhere you
have
> > 0x01 in your data you transmit 0x01 0x01.  Any other value is
> unmodified,
> > except 0x00 terminates the string.
> >
> > There are probably better solutions, though.
> >
> > Jim
> >
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to