| 2803 | } |
| 2804 | |
| 2805 | static bool packet_receive2(rem_port* port, UCHAR* p, SSHORT bufSize, SSHORT* length) |
| 2806 | { |
| 2807 | *length = 0; |
| 2808 | |
| 2809 | while (true) |
| 2810 | { |
| 2811 | SSHORT l = bufSize - *length; |
| 2812 | if (!packet_receive(port, p + *length, l, &l)) |
| 2813 | return false; |
| 2814 | |
| 2815 | if (l >= 0) |
| 2816 | { |
| 2817 | *length += l; |
| 2818 | break; |
| 2819 | } |
| 2820 | |
| 2821 | *length -= l; |
| 2822 | if (!packet_send(port, 0, 0)) |
| 2823 | return false; |
| 2824 | } |
| 2825 | |
| 2826 | return true; |
| 2827 | } |
| 2828 | |
| 2829 | static rem_port* inet_try_connect(PACKET* packet, |
| 2830 | Rdb* rdb, |
nothing calls this directly
no test coverage detected