TurnKey Linux Virtual Appliance Library

How Nginx can talk to other library

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.

Jeremy's picture

Wouldn't even know where to start...

And to be honest I don't expect you'll get much here (although who knows...?) I don't think we have very many Nginx users here and there is no official TKL Nginx appliance (or any that use Nginx). I think probably the best place to seek assistance is the Nginx community.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)