示例#1
0
 /**
  * Sends the given RCON packet to the server
  *
  * @param SteamPacket $dataPacket The RCON packet to send to the server
  */
 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);
 }