thanks that's what I need.

On Sun, Jul 3, 2011 at 9:13 PM, Anthony Catel <[email protected]> wrote:
> BTW,
>
> Here is a simple template :
>
> static ace_callbacks callbacks = {
>     NULL,
>     ape_cb_del_user,    /* Called when a user is disconnected (or timeout)
> */
>     NULL,
>     NULL,
>     NULL,
>     NULL,
>     NULL,
>     NULL,
>     NULL,
>     NULL,
>     ape_cb_delsubuser /* called when a subuser (instance) is disconnected
> (or timeout) */
> };
>
> static void ape_cb_delsubuser(subuser *sub, acetables *g_ape)
> {
>
> }
>
> static void ape_cb_del_user(USERS *user, int istmp, acetables *g_ape)
> {
>     /* You have to do this to call the original event (and release objects)
> */
>     deluser(user, g_ape);
> }
>
> Le 04/07/2011 03:55, Anthony Minessale a écrit :
>
> I was actually looking for a way to bind to a disconnect event when the
> browser disconnects from the websocket.
>
> I noticed that when the connect command is issued a user obj is stored in a
> hash and subsequently never released unless you do so from the client end
> which can't always happen.
>
> So ideally I would like a callback every time the web socket is closed so I
> can iterate all sessid on that session, and free the resources from the hash
> of sessid.
>
> I found where this happens so really what I need is the code path to get
> from the fd number of the web socket to all the sessid associated with it.
>
> On Jul 3, 2011 1:51 PM, "Anthony Catel" <[email protected]> wrote:
>> Hi,
>>
>> What callback?
>>
>> Le 02/07/2011 00:42, Anthony Minessale a écrit :
>>> Hi,
>>>
>>> in a module callback when you are passed just client and g_ape, is
>>> there a code path to resolve the userid for that connection?
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "APE Project" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> 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/
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:[email protected]
GTALK/JABBER/PAYPAL:[email protected]
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:[email protected]
googletalk:[email protected]
pstn:+19193869900

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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/

Reply via email to