コード例 #1
0
 /**
  * Sends the given packet to the server
  *
  * This converts the packet into a byte stream first before writing it to
  * the socket.
  *
  * @param SteamPacket $dataPacket The packet to send to the server
  * @see SteamPacket::__toString()
  */
 public function send(SteamPacket $dataPacket)
 {
     self::$log->addDebug("Sending packet of type \"" . get_class($dataPacket) . "\"...");
     $this->socket->send($dataPacket->__toString());
 }
コード例 #2
0
 /**
  * Sends the given packet to the server
  *
  * This converts the packet into a byte stream first before writing it to
  * the socket.
  *
  * @param SteamPacket $dataPacket The packet to send to the server
  * @see SteamPacket::__toString()
  */
 public function send(SteamPacket $dataPacket)
 {
     $this->logger->debug("Sending packet of type \"" . get_class($dataPacket) . "\"...");
     $this->socket->send($dataPacket->__toString());
 }