On Wed, Apr 10, 2013 at 07:25:18AM -0400, Edison Nica wrote:
>    I am trying to understand how monkey works, and I could not figure out
> where in the  code handled_by is assigned (e.g. foo->handled_by = bar;).
> Can you point me please to the location? I see handled_by used only in a
> few ifs.
> 
> Thanks,
> Edi
> 
>     /* Plugin handlers */
>     struct plugin *handled_by;
> 

This variable was not in use and is removed in current master.
Plugins will themselves determine if they want to handle a received
requests.
Each plugin's stage_30 callback is tried in the order they were loaded
until the request in done.
They return RET_PLUGIN_NOT_ME if they don't want to handle that request,
MK_PLUGIN_RET_CONTINUE if they will handle it eventually or
MK_PLUGIN_RET_END if they are done handling.

Commit where the variable was removed:
5c688e2 request: Remove handled_by member from session_request.

> 
> On Tue, Mar 19, 2013 at 11:58 PM, Eduardo Silva <[email protected]> wrote:
> 
> > Hi,
> >
> >
> > On Tue, Mar 19, 2013 at 9:20 PM, Edison Nica <[email protected]>wrote:
> >
> >> http://monkey-project.com/about
> >>
> >> 1) how do I do server side scripting? I just want to make a simple script
> >> in whatever language (e.g. localhost/add?a=1&b=2 would output
> >> <html>3</html>)
> >>
> >>
> > You can use any scripting language that supports FastCGI, so you can use
> > the Monkey FastCGI plugin. You can also review the Duda I/O sub-project
> > which aims to expose a friendly API for the development of web services, it
> > allows to handle that kind of URL and many other stuff:
> >
> >     http://duda.io
> >
> >
> >
> >> 2) what does "C API interface" means?
> >>
> >>
> > That means that you can create your own extensions for Monkey using the C
> > language based in the programming interface exposed. Please refer to the
> > plugins section in the following blog post to understand the server
> > architecture:
> >
> >
> > http://edsiper.linuxchile.cl/blog/2013/02/27/architecture-of-a-linux-based-web-server/
> >
> >
> >
> >> 3) where can I find documentation for plugins?
> >>
> >>
> > The API documentation have not been migrated from the old site (my fault..
> > sorry about that), but you can refer to Mandril or Liana plugins as they
> > are the most basic ones that interact at different layers of the API. I
> > know this is not enough to start but its the only thing that we have at the
> > moment.
> >
> > feel free to join us on irc.freenode.net #monkey,
> >
> > best
> >
> > --
> > Eduardo Silva
> > http://edsiper.linuxchile.cl
> > http://www.monkey-project.com
> >

> _______________________________________________
> Monkey mailing list
> [email protected]
> http://lists.monkey-project.com/listinfo/monkey


-- 
Sonny Karlsson
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to