public function send(SteamPacket $dataPacket) {
        $this->logger->debug("Sending packet of type \"" . get_class($dataPacket) . "\"...");

        $this->socket->send($dataPacket->__toString());
    }
public function send(SteamPacket $dataPacket) {
        $this->logger->debug("Sending packet of type \"" . get_class($dataPacket) . "\"...");

        $this->socket->send($dataPacket->__toString());
    }
public function send ( SteamPacket $ dataPacket ) { $ this -> logger -> debug ( "Sending packet of type \"" . get_class ( $ dataPacket ) . "\"..." ) ; $ this -> socket -> send ( $ dataPacket -> __toString ( ) ) ; }
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()
Sends the given packet to the server