Kafka\Socket::close PHP 메소드

close() 공개 메소드

close the socket
public close ( ) : void
리턴 void
    public function close()
    {
        if (is_resource($this->stream)) {
            fclose($this->stream);
        }
    }

Usage Example

예제 #1
0
 /**
  * Close the connection
  *
  * @return void
  */
 public function close()
 {
     if (null !== $this->socket) {
         $this->socket->close();
     }
 }