Changeset 58390 in vbox for trunk/src/VBox/Devices/GIMDev/DrvUDP.cpp
- Timestamp:
- Oct 23, 2015 12:35:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/GIMDev/DrvUDP.cpp
r57989 r58390 80 80 { 81 81 size_t cbReallyRead = 0; 82 rc = RTSocketRead NB(pThis->hSocket, pvBuf, *pcbRead, &cbReallyRead);82 rc = RTSocketRead(pThis->hSocket, pvBuf, *pcbRead, &cbReallyRead); 83 83 if (RT_SUCCESS(rc)) 84 84 *pcbRead = cbReallyRead; … … 103 103 if (pThis->hSocket != NIL_RTSOCKET) 104 104 { 105 size_t cb ReallyWritten = 0;106 rc = RTSocketWrite NB(pThis->hSocket, pvBuf, *pcbWrite, &cbReallyWritten);105 size_t cbBuf = *pcbWrite; 106 rc = RTSocketWriteToNB(pThis->hSocket, pvBuf, cbBuf, NULL /*pDstAddr*/); 107 107 if (RT_SUCCESS(rc)) 108 *pcbWrite = cb ReallyWritten;108 *pcbWrite = cbBuf; 109 109 } 110 110 else … … 147 147 if (pThis->hSocket != NIL_RTSOCKET) 148 148 { 149 RTSocketRetain(pThis->hSocket); 150 RTSocketShutdown(pThis->hSocket, true, true); 149 151 RTSocketClose(pThis->hSocket); 150 152 pThis->hSocket = NIL_RTSOCKET;
Note:
See TracChangeset
for help on using the changeset viewer.