[gameprogrammer] Re: va_start va_end inversion
- From: "Alan Wolfe" <atrix2@xxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Thu, 15 Jul 2004 14:59:19 -0700
by the way, why are you doing this?
if it's for packets you're sending over a network, i suggest you have a
"Packet type" portion of the packet.
what i mean is like this; the first byte of a packet is the command byte
if the command byte is CMD_MOVEOBJECT (assuming that's a constant), then you
know after the command byte are an integer with the ID of the object and 3
floats describing the new position of the object in 3d coordinates.
if the command byte is CMD_KILLOBJECT, that means there is an integer that
is the ID of the object to be killed.
if the command byte is CMD_LOGOFF, that means there are no parameters and
that the client should close the network connection.
does that make sense?
----- Original Message -----
From: "Kevin Jenkins" <gameprogrammer@xxxxxxxxxx>
To: <gameprogrammer@xxxxxxxxxxxxx>
Sent: Wednesday, July 14, 2004 3:11 PM
Subject: [gameprogrammer] va_start va_end inversion
> Using va_start and va_end I've encoded a variable set of parameters to a
> bytestream.
>
> I want to invert this. Given a bytestream, I want to get the original set
> of parameters. I want to then call a function that takes that set of
> parameters.
>
> How?
>
>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Re: Linux equivalent of CreateDirectory
- From: Jason Clark
- [gameprogrammer] va_start va_end inversion
- From: Kevin Jenkins
Other related posts:
- » [gameprogrammer] va_start va_end inversion
- » [gameprogrammer] Re: va_start va_end inversion
- » [gameprogrammer] Re: va_start va_end inversion
- » [gameprogrammer] Re: va_start va_end inversion
- » [gameprogrammer] Re: va_start va_end inversion
- » [gameprogrammer] Re: va_start va_end inversion
- » [gameprogrammer] Re: va_start va_end inversion
- » [gameprogrammer] Re: va_start va_end inversion
- » [gameprogrammer] Re: va_start va_end inversion
- [gameprogrammer] Re: Linux equivalent of CreateDirectory
- From: Jason Clark
- [gameprogrammer] va_start va_end inversion
- From: Kevin Jenkins