Thread

Callbacks recieved on Disconnect (Sdk)

Callbacks recieved on Disconnect // Sdk

1  |  

strike rapier

Jun 11, 2005, 5:10pm
I am hoping someone could give me an idea on this, to save me running
extensive tests.

If I enable object callback, send 200 object adds... and recieve 100
callbacks, then get disconnected - will i ever recieve the other 100
callbacks?

--
- Mark Randall
http://zetech.swehli.com

chrispeg

Jun 11, 2005, 6:55pm
Call aw_wait (0) inbetween the aw_object_add () and aw_object_change ()
mehtods, to a) catch callbacks and events; b) to avoid buffer overruns of
the outgoing socket. Or use syncronous calls to avoid this situation is mass
building.

Thanks,
Chris

"Strike Rapier" <markyr at gmail.com> schrieb im Newsbeitrag
news:42ab3730 at server1.Activeworlds.com...
>I am hoping someone could give me an idea on this, to save me running
>extensive tests.
>
> If I enable object callback, send 200 object adds... and recieve 100
> callbacks, then get disconnected - will i ever recieve the other 100
> callbacks?
>
> --
> - Mark Randall
> http://zetech.swehli.com
>

strike rapier

Jun 11, 2005, 8:28pm
I am calling aw_wait at 100ms regardless; however - syncronous calls are not
an option - they freeze the calling thread, and I am actually making a multi
dispatch queue class, to send callback messages back to the class or a
static function that called the associated SDK method, so *should* my
connection go down... for example overflow, network connectivity, idiot
parents pulling out the ADSL... I need to know if the rest will be called or
not after the disconnect event.

--
- Mark Randall
http://zetech.swehli.com

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn