| 646 | } |
| 647 | |
| 648 | static void RequireResendNoShmem(const TNetSocket& s, const sockaddr_in6& toAddress, int transferId, int attempt) { |
| 649 | char buf[100], *pktData = buf + UDP_LOW_LEVEL_HEADER_SIZE; |
| 650 | Write(&pktData, transferId); |
| 651 | Write(&pktData, (char)ACK_RESEND_NOSHMEM); |
| 652 | Write(&pktData, attempt); |
| 653 | s.SendTo(buf, (int)(pktData - buf), toAddress, FF_ALLOW_FRAG); |
| 654 | } |
| 655 | |
| 656 | static void AckComplete(const TNetSocket& s, const sockaddr_in6& toAddress, int transferId, const TGUID& packetGuid, int packetId) { |
| 657 | char buf[100], *pktData = buf + UDP_LOW_LEVEL_HEADER_SIZE; |