Lines Matching defs:packet
292 void CECSocket::SendPacket(const CECPacket *packet)
294 uint32 len = WritePacket(packet);
295 packet->DebugPrint(false, len);
299 const CECPacket *CECSocket::SendRecvPacket(const CECPacket *packet)
301 SendPacket(packet);
401 std::auto_ptr<const CECPacket> packet(ReadPacket());
403 if (packet.get()) {
404 std::auto_ptr<const CECPacket> reply(OnPacketReceived(packet.get(), m_curr_packet_len));
409 AddDebugLogLineN(logEC, wxT("OnInput: no packet"));
538 // packet bigger that 16Mb looks more like broken request
540 AddDebugLogLineN(logEC, CFormat(wxT("ReadHeader: packet too big: %d")) % m_bytes_needed);
634 // no reason for this situation: all packet should be
729 uint32 CECSocket::WritePacket(const CECPacket *packet)
744 if (packet->GetPacketLength() > EC_MAX_UNCOMPRESSED
771 // preallocate 4 bytes in buffer for packet length
775 packet->WritePacket(*this);
809 CECPacket *packet = 0;
816 cout << "ReadPacket: packet have invalid flags " << flags << endl;
840 packet = new CECPacket();
842 if (!packet->ReadFromSocket(*this)) {
843 AddDebugLogLineN(logEC, wxT("ReadPacket: error in packet read"));
844 cout << "ReadPacket: error in packet read" << endl;
845 delete packet;
846 packet = NULL;
860 return packet;