Searched refs:timeout_sec (Results 1 – 3 of 3) sorted by relevance
/PHP-7.1/ext/ftp/ |
H A D | ftp.h | 73 zend_long timeout_sec; /* User configurable timeout (seconds) */ member 98 ftpbuf_t* ftp_open(const char *host, short port, zend_long timeout_sec);
|
H A D | php_ftp.c | 365 zend_long timeout_sec = FTP_DEFAULT_TIMEOUT; in PHP_FUNCTION() local 367 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ll", &host, &host_len, &port, &timeout_sec) == FAILU… in PHP_FUNCTION() 371 if (timeout_sec <= 0) { in PHP_FUNCTION() 377 if (!(ftp = ftp_open(host, (short)port, timeout_sec))) { in PHP_FUNCTION() 402 zend_long timeout_sec = FTP_DEFAULT_TIMEOUT; in PHP_FUNCTION() local 404 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ll", &host, &host_len, &port, &timeout_sec) == FAILU… in PHP_FUNCTION() 408 if (timeout_sec <= 0) { in PHP_FUNCTION() 414 if (!(ftp = ftp_open(host, (short)port, timeout_sec))) { in PHP_FUNCTION() 1472 ftp->timeout_sec = Z_LVAL_P(z_value); in PHP_FUNCTION() 1519 RETURN_LONG(ftp->timeout_sec); in PHP_FUNCTION()
|
H A D | ftp.c | 130 ftp_open(const char *host, short port, zend_long timeout_sec) in ftp_open() argument 140 tv.tv_sec = timeout_sec; in ftp_open() 151 ftp->timeout_sec = timeout_sec; in ftp_open() 1284 n = php_pollfd_for_ms(s, POLLOUT, ftp->timeout_sec * 1000); in my_send() 1374 n = php_pollfd_for_ms(s, PHP_POLLREADABLE, ftp->timeout_sec * 1000); in my_recv() 1498 n = php_pollfd_for_ms(s, PHP_POLLREADABLE, ftp->timeout_sec * 1000); in my_accept() 1556 tv.tv_sec = ftp->timeout_sec; in ftp_getdata()
|
Completed in 10 milliseconds