diff options
| author | Wez Furlong <wez@php.net> | 2003-02-28 19:53:21 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2003-02-28 19:53:21 +0000 |
| commit | 1b53a2d12e520adec5cbbc60bf8f2b6d8e54eece (patch) | |
| tree | 9ec880f9d210dc979ef007e1d69c4c53666f8a46 /ext/ftp/ftp.c | |
| parent | 14bf872003ff96b60960d5b822a0bb846bff176f (diff) | |
| download | php-git-1b53a2d12e520adec5cbbc60bf8f2b6d8e54eece.tar.gz | |
New user-space functions:
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_accept() - Accept a client connection.
. stream_socket_get_name() - Get local or remote name of socket.
Tidy up some leaks and debug printfs.
Move more streams functions into streamsfuncs.c and streamsfuncs.h.
Diffstat (limited to 'ext/ftp/ftp.c')
| -rw-r--r-- | ext/ftp/ftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 8ceb938c7d..4601a6e321 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -135,7 +135,9 @@ ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC) tv.tv_sec = timeout_sec; tv.tv_usec = 0; - ftp->fd = php_hostconnect(host, (unsigned short) (port ? port : 21), SOCK_STREAM, &tv TSRMLS_CC); + ftp->fd = php_network_connect_socket_to_host(host, + (unsigned short) (port ? port : 21), SOCK_STREAM, + 0, &tv, NULL, NULL TSRMLS_CC); if (ftp->fd == -1) { goto bail; } |
