APE module in C or C++

42 views
Skip to first unread message

angu

unread,
Mar 30, 2010, 6:43:09 AM3/30/10
to APE Project
Hi,

does anybody know how to write APE module in C or C++. May be I
overlooked documentation but it seems to me that there is no any
example on Subj.

Thanks

ma liang

unread,
Mar 30, 2010, 9:19:29 PM3/30/10
to ape-p...@googlegroups.com
ape server side js module is recommended in version 1.0.
But you can also write c module according libape-spidermonkey.c
or http://github.com/bigml/APE_Server/blob/master/modules/libape-push.c

Basic skeleton is:

static ace_plugin_infos infos_module = {
...
};

static void init_module(acetables *g_ape)
{
....
}

static ace_callbacks callbacks = {
...
}

APE_INIT_PLUGIN(MODULE_NAME, init_module, callbacks)


BTW, there are a few examples in APE_SERVER_0.9's module directory, for reference only.


2010/3/30 angu <ant...@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/

To unsubscribe from this group, send email to ape-project+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Perrin Perrin

unread,
Mar 30, 2010, 9:27:23 PM3/30/10
to ape-p...@googlegroups.com
Note: Making a c++ module is very similar to making a C module except you must specify that the entry function uses C linkage so that the compiler doesn't mangle the symbol.

Antanas Gurskas

unread,
Apr 1, 2010, 1:30:49 AM4/1/10
to ape-p...@googlegroups.com
Thanks for your valuable advices. I found useful examples in pointed
APE_SERVER's module directory.
Reply all
Reply to author
Forward
0 new messages