Welcome! Log In Create A New Profile

Advanced

Re: [ Module development - Socket ]

April 13, 2017 05:40AM
After reading the source code available in "ngx_mail_auth_http_module.c"

trying to figure out how to make a "basic TCP connection" to

a backend server, nothing seems clear. I didn't find any simple pattern

to read/write on a TCP socket, even if there are simple call like

ngx_event_connect_peer() or ngx_close_connection() for connection phase

and ngx_send|recv / ngx_unix_send|recv / send|recv for reading and writing on a socket.

How can I setup a basic TCP socket into my handler which will connect / send / recv and then

close the connection ?
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: 316
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