atom feed4 messages in ru.sysoev.nginxRegistering Nginx callback in externa...
FromSent OnAttachments
Sammy RaulApr 19, 2012 1:38 am 
sammy_raulApr 19, 2012 5:10 pm 
agentzhApr 20, 2012 12:20 am 
sammy_raulApr 22, 2012 9:26 pm 
Subject:Registering Nginx callback in external library
From:Sammy Raul (samm@gmail.com)
Date:Apr 19, 2012 1:38:46 am
List:ru.sysoev.nginx

Hi All,

Here's what I wanted to do:

1) I wanted to write a Nginx location handler for example "/mylocation" which when invoked should call another program to get the response.

2) The other external program provides a client library where we can register callbacks.

3) The external program will call the callback when the data is available.

I wanted to know if I am using an external library and one of the external API is asking for registering callback, how i can achieve this in Nginx.

I cannot give any function from my handler, as that is called internally by the nginx Core.

Please guide me how I can register a callback inside Nginx which will be called by the external program.

Thanks,

Raul.