opensrs\Base::init_socket PHP 메소드

init_socket() 개인적인 메소드

Method to initialize a socket connection to the OpenSRS server.
부터: 3.1
private init_socket ( ) : boolean
리턴 boolean True if connected
    private function init_socket()
    {
        if ($this->is_connected()) {
            return true;
        }
        $this->_socket = fsockopen(CRYPT_TYPE . '://' . OSRS_HOST, OSRS_SSL_PORT, $this->_socketErrorNum, $this->_socketErrorMsg, $this->_socketTimeout);
        if (!$this->_socket) {
            return false;
        } else {
            return true;
        }
    }