Custom file descriptor handler

Marat Dakota dakota at brokenpipe.ru
Sun Feb 8 04:17:45 UTC 2015


Hi,

I have a file descriptor (it is created by other software, not by nginx).
How to add it to nginx event loop watcher properly? All I need is to have
my callback called when my file descriptor has a new data to read (I'll
read the data by myself).

Browsing the code shows functions like ngx_add_conn and ngx_add_event, but
it seems like a non-trivial thing to prepare the proper input arguments.

Thanks!

--
Marat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150208/302cd095/attachment.html>


More information about the nginx-devel mailing list