public function close() {
        if(!empty($this->socket) && $this->socket->isOpen()) {
            $this->socket->close();
        }
    }
public function close() {
        if(!empty($this->socket) && $this->socket->isOpen()) {
            $this->socket->close();
        }
    }
public function close ( ) { if ( ! empty ( $ this -> socket ) && $ this -> socket -> isOpen ( ) ) { $ this -> socket -> close ( ) ; } }
Closes the underlying socket

@see UDPSocket::close()
Closes the underlying socket