close() public method

Close the connection
public close ( ) : void
return void
Beispiel #1
0
 /**
  * Close the process
  * @return void
  */
 public function close()
 {
     parent::close();
     $this->closeWrite();
     if (is_resource($this->pd)) {
         proc_close($this->pd);
     }
 }
Beispiel #2
0
 /**
  * Close the connection
  * @return void
  */
 public function close()
 {
     parent::close();
     if (is_resource($this->fd)) {
         socket_close($this->fd);
     }
 }