- Timestamp:
- Aug 21, 2013 1:25:41 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88283
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/lwip-new/vbox/pxtcp.c
r47886 r47966 1469 1469 nsent = sendmsg(pxtcp->sock, &mh, send_flags); 1470 1470 #else 1471 nsent = -1; /* unix send*'s "assignment" semantic, that different from WSA */ 1471 /** 1472 * WSASend(,,,DWORD *,,,) - takes SSIZE_T (64bit value) ... so all nsent's 1473 * bits should be zeroed before passing to WSASent. 1474 */ 1475 nsent = 0; 1472 1476 rc = WSASend(pxtcp->sock, iov, (DWORD)i, (DWORD *)&nsent, 0, NULL, NULL); 1473 1477 if (rc == SOCKET_ERROR) { 1474 /* WSASent reports both status code and nsent 1475 * need some eurisitic how to work with it. 1478 /* WSASent reports SOCKET_ERROR and updates error accessible with 1479 * WSAGetLastError(). We assign nsent to -1, enforcing code below 1480 * to access error in BSD style. 1476 1481 */ 1477 1482 warn("pxtcp_pcb_forward_outbound:WSASend error:%d nsent:%d\n", 1478 1483 WSAGetLastError(), 1479 1484 nsent); 1480 } 1485 nsent = -1; 1486 } 1481 1487 #endif 1488 1482 1489 if (nsent == (ssize_t)fwd1) { 1483 1490 /* successfully sent this chain fragment completely */
Note:
See TracChangeset
for help on using the changeset viewer.