ftp: active conn, allow application to set sockopt after accept() call
authorGokhan Sengun <gokhansengun@gmail.com>
Sun, 24 Jun 2012 22:46:01 +0000 (01:46 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 16 Aug 2012 21:20:08 +0000 (23:20 +0200)
commit23ef5e4ba22386ccc43f99db1d0f4106dc603e80
tree227f78e6398a7a02ad37ddd050ee965b4d77a4f5
parent44154e0733c2b6fcadaaf772dfd5c93792fb07cc
ftp: active conn, allow application to set sockopt after accept() call

For active FTP connections, applications may need setting the sockopt after accept() call returns successful. This fix gives a call to the callback registered with CURL_SOCKOPTFUNCTION option. Also a new sock type - CURLSOCKTYPE_ACCEPT - is added. This type is to be passed to application callbacks with - purpose - parameter. Applications may use this parameter to distinguish between socket types.
include/curl/curl.h
lib/ftp.c