Lines Matching defs:lenPacket
79 if (lenPacket OP (uint32_t)(SIZE)) \
80 throw wxString(CFormat(wxT("***NOTE: Received wrong size (%u) packet in %s")) % lenPacket % wxString::FromAscii(__FUNCTION__))
87 throw wxString(CFormat(wxT("***NOTE: Received unrequested response packet, size (%u) in %s")) % lenPacket % wxString::FromAscii(__FUNCTION__))
235 uint32_t lenPacket = lenData - 2;
248 Process2BootstrapResponse(packetData, lenPacket, ip, port, senderKey, validReceiverKey);
252 Process2HelloRequest(packetData, lenPacket, ip, port, senderKey, validReceiverKey);
256 Process2HelloResponse(packetData, lenPacket, ip, port, senderKey, validReceiverKey);
260 Process2HelloResponseAck(packetData, lenPacket, ip, validReceiverKey);
264 ProcessKademlia2Request(packetData, lenPacket, ip, port, senderKey);
268 ProcessKademlia2Response(packetData, lenPacket, ip, port, senderKey);
272 Process2SearchNotesRequest(packetData, lenPacket, ip, port, senderKey);
276 Process2SearchKeyRequest(packetData, lenPacket, ip, port, senderKey);
280 Process2SearchSourceRequest(packetData, lenPacket, ip, port, senderKey);
284 ProcessSearchResponse(packetData, lenPacket);
288 ProcessSearchNotesResponse(packetData, lenPacket, ip);
292 Process2SearchResponse(packetData, lenPacket, senderKey);
296 Process2PublishNotesRequest(packetData, lenPacket, ip, port, senderKey);
300 Process2PublishKeyRequest(packetData, lenPacket, ip, port, senderKey);
304 Process2PublishSourceRequest(packetData, lenPacket, ip, port, senderKey);
308 ProcessPublishResponse(packetData, lenPacket, ip);
312 Process2PublishResponse(packetData, lenPacket, ip, port, senderKey);
316 ProcessFirewalledRequest(packetData, lenPacket, ip, port, senderKey);
320 ProcessFirewalled2Request(packetData, lenPacket, ip, port, senderKey);
324 ProcessFirewalledResponse(packetData, lenPacket, ip, senderKey);
328 ProcessFirewalledAckResponse(lenPacket);
332 ProcessFindBuddyRequest(packetData, lenPacket, ip, port, senderKey);
336 ProcessFindBuddyResponse(packetData, lenPacket, ip, port, senderKey);
340 ProcessCallbackRequest(packetData, lenPacket, ip, port, senderKey);
348 Process2Pong(packetData, lenPacket, ip);
352 Process2FirewallUDP(packetData, lenPacket, ip);
488 void CKademliaUDPListener::Process2BootstrapResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey, bool validReceiverKey)
495 CMemFile bio(packetData, lenPacket);
524 void CKademliaUDPListener::Process2HelloRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey, bool validReceiverKey)
529 bool addedOrUpdated = AddContact2(packetData, lenPacket, ip, port, &contactVersion, senderKey, validReceiverKey, true, true, NULL, &contactID); // might change (udp)port, validReceiverKey
575 void CKademliaUDPListener::Process2HelloResponseAck(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, bool validReceiverKey)
586 CMemFile bio(packetData, lenPacket);
597 void CKademliaUDPListener::Process2HelloResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey, bool validReceiverKey)
605 bool addedOrUpdated = AddContact2(packetData, lenPacket, ip, port, &contactVersion, senderKey, validReceiverKey, true, false, &sendACK, &contactID);
642 void CKademliaUDPListener::ProcessKademlia2Request(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
645 CMemFile bio(packetData, lenPacket);
689 void CKademliaUDPListener::ProcessKademlia2Response(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& WXUNUSED(senderKey))
697 CMemFile bio(packetData, lenPacket);
920 void CKademliaUDPListener::Process2SearchKeyRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
922 CMemFile bio(packetData, lenPacket);
942 void CKademliaUDPListener::Process2SearchSourceRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
944 CMemFile bio(packetData, lenPacket);
978 void CKademliaUDPListener::ProcessSearchResponse(const uint8_t *packetData, uint32_t lenPacket)
983 CMemFile bio(packetData, lenPacket);
989 void CKademliaUDPListener::Process2SearchResponse(const uint8_t *packetData, uint32_t lenPacket, const CKadUDPKey& WXUNUSED(senderKey))
991 CMemFile bio(packetData, lenPacket);
1001 void CKademliaUDPListener::Process2PublishKeyRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
1012 CMemFile bio(packetData, lenPacket);
1072 //DebugClientOutput(wxT("CKademliaUDPListener::Process2PublishKeyRequest"),ip,port,packetData,lenPacket);
1099 void CKademliaUDPListener::Process2PublishSourceRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
1110 CMemFile bio(packetData, lenPacket);
1189 //DebugClientOutput(wxT("CKademliaUDPListener::Process2PublishSourceRequest"),ip,port,packetData,lenPacket);
1216 void CKademliaUDPListener::ProcessPublishResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip)
1222 CMemFile bio(packetData, lenPacket);
1237 void CKademliaUDPListener::Process2PublishResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
1240 throw wxString(CFormat(wxT("***NOTE: Received unrequested response packet, size (%u) in %s")) % lenPacket % wxString::FromAscii(__FUNCTION__));
1242 CMemFile bio(packetData, lenPacket);
1259 void CKademliaUDPListener::Process2SearchNotesRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
1261 CMemFile bio(packetData, lenPacket);
1269 void CKademliaUDPListener::ProcessSearchNotesResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip)
1276 CMemFile bio(packetData, lenPacket);
1282 void CKademliaUDPListener::Process2PublishNotesRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
1290 CMemFile bio(packetData, lenPacket);
1331 //DebugClientOutput(wxT("CKademliaUDPListener::Process2PublishNotesRequest"),ip,port,packetData,lenPacket);
1351 void CKademliaUDPListener::ProcessFirewalledRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
1356 CMemFile bio(packetData, lenPacket);
1374 void CKademliaUDPListener::ProcessFirewalled2Request(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
1379 CMemFile bio(packetData, lenPacket);
1399 void CKademliaUDPListener::ProcessFirewalledResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, const CKadUDPKey& WXUNUSED(senderKey))
1408 CMemFile bio(packetData, lenPacket);
1421 void CKademliaUDPListener::ProcessFirewalledAckResponse(uint32_t lenPacket)
1434 void CKademliaUDPListener::ProcessFindBuddyRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
1447 CMemFile bio(packetData, lenPacket);
1472 void CKademliaUDPListener::ProcessFindBuddyResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& WXUNUSED(senderKey))
1478 CMemFile bio(packetData, lenPacket);
1485 if (lenPacket > 34) {
1498 void CKademliaUDPListener::ProcessCallbackRequest(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t WXUNUSED(port), const CKadUDPKey& WXUNUSED(senderKey))
1505 CMemFile bio(packetData, lenPacket);
1513 CMemFile packetdata(lenPacket + 6);
1539 void CKademliaUDPListener::Process2Pong(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip)
1571 void CKademliaUDPListener::Process2FirewallUDP(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip)