ftp_pure::_connect()publicWP 1.0

Method of the class: ftp_pure{}

No Hooks.

Return

null. Nothing (null).

Usage

$ftp_pure = new ftp_pure();
$ftp_pure->_connect( $host, $port );
$host (required)
-
$port (required)
-

ftp_pure::_connect() code WP 6.5.2

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;
}