ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Callbacks recieved on Disconnect (Sdk)
Callbacks recieved on Disconnect // Sdkstrike rapierJun 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 chrispegJun 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 rapierJun 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] |