WordPress at Your Fingertips
function is not described

ftp_pure::_connect() public WP 1.0

{} It's a method of the class: ftp_pure{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of ftp_pure::_connect() WP 5.8.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;
}