Re: ws2_32: Partial implementation of TransmitFile/TransmitPackets (try 2)
17 Jul
2008
17 Jul
'08
9:35 a.m.
Jon Griffiths <jon_p_griffiths(a)yahoo.com> writes:
+ while (send_len) + { + wsabuf.len = send_len; + if (wsabuf.len > chunk_len) + wsabuf.len = chunk_len; + if (!ReadFile(packet->u.s.hFile, wsabuf.buf, wsabuf.len, &n, NULL)) + goto TransmitPackets_fail; + wsabuf.len = n; + if (WSASendTo(s, &wsabuf, 1, &n, 0, NULL, 0, NULL, NULL) == SOCKET_ERROR) + goto TransmitPackets_fail; + send_len -= n; + }
This is still wrong, WSASendTo doesn't necessarily send the whole buffer. -- Alexandre Julliard julliard(a)winehq.org
6363
Age (days ago)
6363
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard