src/Net/Connectivity.php
public function checkUsingSocket(){
		$conn	= @fsockopen( 'google.com', 443);
		$this->status = $conn ? self::STATUS_ONLINE : self::STATUS_OFFLINE;
        fclose( $conn );
	}
public function checkUsingSocket(){
		$conn	= @fsockopen( 'google.com', 443);
		$this->status = $conn ? self::STATUS_ONLINE : self::STATUS_OFFLINE;
        fclose( $conn );
	}
public function checkUsingSocket ( ) { $ conn = @ fsockopen ( 'google.com' , 443 ) ; $ this -> status = $ conn ? self :: STATUS_ONLINE : self :: STATUS_OFFLINE ; fclose ( $ conn ) ; }
Check connectivity using a socket connection.
Sets status depending on result.
@access		public
@return		void
Check connectivity using a socket connection . Sets status depending on result .