Welcome! Log In Create A New Profile

Advanced

Custom file descriptor handler

Marat Dakota
February 07, 2015 11:18PM
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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Custom file descriptor handler

Marat Dakota 773 February 07, 2015 11:18PM

Re: Custom file descriptor handler

Marat Dakota 303 February 08, 2015 08:20PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready