public function sendPacket(Packet $packet, $dest, $port) { $packet->encode(); $this->sendBytes += $this->socket->writePacket($packet->buffer, $dest, $port); }
private function sendPacket(Packet $packet) { $this->sessionManager->sendPacket($packet, $this->address, $this->port); }