ftp_pure::_connect
Method of the class: ftp_pure{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$ftp_pure = new ftp_pure(); $ftp_pure->_connect( $host, $port );
- $host(required)
- .
- $port(required)
- .
ftp_pure::_connect() ftp pure:: connect code WP 6.8.1
function _connect($host, $port) { $this->SendMSG("Creating socket"); $sock = @fsockopen($host, $port, $errno, $errstr, $this->_timeout); if (!$sock) { $this->PushError('_connect','socket connect failed', $errstr." (".$errno.")"); return FALSE; } $this->_connected=true; return $sock; }