flip, I prefer set the "history_default_max_size" and
"history_default_raw_filter" value in modules's config file,
so, diffrent module can set it's own channel's history seprately.
Channel's history size and filter can set by module manually AFTER
init_channel_history() like this:(offered by channel_history.h)
#define SET_CHANNEL_MAX_HISTORY_SIZE(chan, size) \
do { \
add_property(&chan->properties, "max_history_size", size, \
EXTEND_STR, EXTEND_ISPRIVATE); \
} while (0)
#define SET_CHANNEL_FILTER(chan, filter)...
2010/1/20 flipkick <[email protected]>
>
> to use the permanent channel feature you simply have to set the
>> CHANNEL_AUTODESTROY (0x02) flag from your js server module on the
>> channel, like:
>>
>> chan.setFlags(chan.getFlags()& ~0x02); // bitwise NOT AND will set
>> the 0x02 flag
>>
>>
>>
>
> my comment is nonsense. correct is: bitwise AND NOT 0x02 will REMOVE the
> 0x02 flag.
>
> addition to the filter function:
> the RAW filter defines which RAW types will be posted to the history.
> probably this will be DATA for your chat app.
> there's a filter set in the config which is default for all channels.
> without a filter set, also the join and other raw types are posted to the
> history. you're able to specify several filters, seperated by a space.
> next time i'll add the function to have individual filters for each
> channel.
>
> a perfomance issue in push_raw_to_channel_history has just been fixed:
> http://github.com/flipkick/APE_Server/commits/
>
>
>
> flip
>
>
> --
> 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]<ape-project%[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/