| 638 | } |
| 639 | |
| 640 | static void RequireResend(const TNetSocket& s, const sockaddr_in6& toAddress, int transferId, int attempt) { |
| 641 | char buf[100], *pktData = buf + UDP_LOW_LEVEL_HEADER_SIZE; |
| 642 | Write(&pktData, transferId); |
| 643 | Write(&pktData, (char)ACK_RESEND); |
| 644 | Write(&pktData, attempt); |
| 645 | s.SendTo(buf, (int)(pktData - buf), toAddress, FF_ALLOW_FRAG); |
| 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; |