public function send(SteamPacket $dataPacket) {
        if(empty($this->socket) || !$this->socket->isOpen()) {
            $this->socket = new TCPSocket();
            $this->socket->connect($this->ipAddress, $this->portNumber, SteamSocket::$timeout);
        }

        parent::send($dataPacket);
    }
public function send(SteamPacket $dataPacket) {
        if(empty($this->socket) || !$this->socket->isOpen()) {
            $this->socket = new TCPSocket();
            $this->socket->connect($this->ipAddress, $this->portNumber, SteamSocket::$timeout);
        }

        parent::send($dataPacket);
    }
public function send ( SteamPacket $ dataPacket ) { if ( empty ( $ this -> socket ) || ! $ this -> socket -> isOpen ( ) ) { $ this -> socket = new TCPSocket ( ) ; $ this -> socket -> connect ( $ this -> ipAddress , $ this -> portNumber , SteamSocket :: $ timeout ) ; } parent :: send ( $ dataPacket ) ; }
Sends the given RCON packet to the server

@param SteamPacket $dataPacket The RCON packet to send to the server
Sends the given RCON packet to the server