diff options
| author | Stig Venaas <venaas@php.net> | 2002-01-06 23:10:54 +0000 |
|---|---|---|
| committer | Stig Venaas <venaas@php.net> | 2002-01-06 23:10:54 +0000 |
| commit | 9a307e45504784826d2cd9f14a687eccdf51186f (patch) | |
| tree | 085d280248f361db329172823ea5de10e3f204b3 /ext/ftp/ftp.h | |
| parent | a6ec8d37e6e661e781e527340069c06a53f95d70 (diff) | |
| download | php-git-9a307e45504784826d2cd9f14a687eccdf51186f.tar.gz | |
Added IPv6 support
@- Added IPv6 support in FTP extension. (Stig Venaas)
Diffstat (limited to 'ext/ftp/ftp.h')
| -rw-r--r-- | ext/ftp/ftp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ftp/ftp.h b/ext/ftp/ftp.h index 9546e53c44..416c36df83 100644 --- a/ext/ftp/ftp.h +++ b/ext/ftp/ftp.h @@ -22,6 +22,8 @@ #ifndef FTP_H #define FTP_H +#include "php_network.h" + #include <stdio.h> #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> @@ -40,7 +42,7 @@ typedef enum ftptype { typedef struct ftpbuf { int fd; /* control connection */ - struct in_addr localaddr; /* local inet address */ + php_sockaddr_storage localaddr; /* local address */ int resp; /* last response code */ char inbuf[FTP_BUFSIZE]; /* last response text */ char *extra; /* extra characters */ @@ -50,7 +52,7 @@ typedef struct ftpbuf char *syst; /* cached system type */ ftptype_t type; /* current transfer type */ int pasv; /* 0=off; 1=pasv; 2=ready */ - struct sockaddr_in pasvaddr; /* passive mode address */ + php_sockaddr_storage pasvaddr; /* passive mode address */ long timeout_sec; /* User configureable timeout (seconds) */ } ftpbuf_t; |
