Welcome! Log In Create A New Profile


[ Module development - Socket ]

April 11, 2017 04:28AM

I need to develop a module which make a connexion with an external server. I tried to use simple TCP sockets available

in the "sys/socket.h" (Linux) library but it appears that it wasn't a good idea as nothing was working correctly.

Then, I searched in the source code keywords like "connection, socket" and I found the "ngx_connection.h" file which I

suppose, is the API to be used if I want to do an external connection. Looking on the web for tutorials/resources using

this API I found nothing more than unanswered stackoverflow threads...

I'm pretty sure that including "sys/socket.h" into nginx is not the good solution as it makes ugly code and broke the pipes

system which makes nginx so fast, could you please help me to find a solution ?


Subject Author Posted

[ Module development - Socket ]

comput3rz April 11, 2017 04:28AM

Re: [ Module development - Socket ]

Maxim Dounin April 11, 2017 10:12AM

Re: [ Module development - Socket ]

comput3rz April 11, 2017 10:19AM

Re: [ Module development - Socket ]

comput3rz April 13, 2017 05:40AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 54
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready