close() 추상적인 공개 메소드

Closes the socket and unsets Socket::$_resource.
abstract public close ( ) : boolean
리턴 boolean `true` on success, `false` otherwise.
예제 #1
0
 /**
  * Disconnect from socket.
  *
  * @return boolean
  */
 public function disconnect()
 {
     if ($this->_isConnected) {
         $this->_isConnected = !$this->_connection->close();
     }
     return !$this->_isConnected;
 }