Queuing Server-Side Commands

3 views
Skip to first unread message

Rauchen

unread,
Oct 20, 2010, 8:02:42 PM10/20/10
to APE Project
Hi all,

I am working on a project where users can connect to a site and play
with an animation. Any other user that is also logged in to the site
can see what is happening to the animation (no matter who is
manipulating it)

You can take a look at it here: http://pemami.serveftp.net/Demos/Test

I want to know if there is a way to queue up raw data inside the
server module so that it is sent out in the order of the time
differences between them. Basically what is happening is that all the
commands seem to be arriving at the server at the same time when in
reality there is a 20 - 50 ms delay between each of them. This is
causing the responses to be sent out at the same time instead of being
delayed correctly.

Again my question is: Is there a way to create some sort of time based
queue on the server or is this something that I have to do client-side
which is not really the best option.

Any help will be much appreciated!
Cheers

ma liang

unread,
Oct 21, 2010, 9:38:51 PM10/21/10
to ape-p...@googlegroups.com
ticks.h:

#define VTICKS_RATE 50 // 50 ms

This is the default lifetime for any raw exist in the server.  You can change it acrodding you need.


2010/10/21 Rauchen <pouya...@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Rauchen

unread,
Oct 21, 2010, 11:54:57 PM10/21/10
to APE Project
Cool thanks for the info but I was wondering if there was a way to
queue up the raws and have control over when they get sent.

For example: if the server received 20 raws at the same time but I
know from their time stamp that they were sent 50ms apart, how can I
let the server side script know that they should also be sent out in
that same timely manner?

I would prefer to not kill the raws if I can help it.

Thanks again.

On Oct 21, 9:38 pm, ma liang <bigmali...@gmail.com> wrote:
> ticks.h:
>
> #define VTICKS_RATE 50 // 50 ms
>
> This is the default lifetime for any raw exist in the server.  You can
> change it acrodding you need.
>
> 2010/10/21 Rauchen <pouyaem...@gmail.com>
>
>
>
>
>
>
>
> > Hi all,
>
> > I am working on a project where users can connect to a site and play
> > with an animation. Any other user that is also logged in to the site
> > can see what is happening to the animation (no matter who is
> > manipulating it)
>
> > You can take a look at it here:http://pemami.serveftp.net/Demos/Test
>
> > I want to know if there is a way to queue up raw data inside the
> > server module so that it is sent out in the order of the time
> > differences between them. Basically what is happening is that all the
> > commands seem to be arriving at the server at the same time when in
> > reality there is a 20 - 50 ms delay between each of them. This is
> > causing the responses to be sent out at the same time instead of being
> > delayed correctly.
>
> > Again my question is: Is there a way to create some sort of time based
> > queue on the server or is this something that I have to do client-side
> > which is not really the best option.
>
> > Any help will be much appreciated!
> > Cheers
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "APE Project" group.
> > To post to this group, send email to ape-p...@googlegroups.com
> > To unsubscribe from this group, send email to
> > ape-project...@googlegroups.com<ape-project%2Bunsubscribe@googlegr oups.com>
Reply all
Reply to author
Forward
0 new messages