VirtualBox

Changeset 31456 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Aug 8, 2010 1:46:41 PM (15 years ago)
Author:
vboxsync
Message:

VBoxHDD: Make the non blocking read/write socket APIs available in the VDTCPNET interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxHDD.h

    r31185 r31456  
    11411141
    11421142    /**
     1143     * Receive data from a socket - not blocking.
     1144     *
     1145     * @return  iprt status code.
     1146     * @param   Sock        Socket descriptor.
     1147     * @param   pvBuffer    Where to put the data we read.
     1148     * @param   cbBuffer    Read buffer size.
     1149     * @param   pcbRead     Number of bytes read.
     1150     */
     1151    DECLR3CALLBACKMEMBER(int, pfnReadNB, (VDSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead));
     1152
     1153    /**
     1154     * Send data to a socket - not blocking.
     1155     *
     1156     * @return  iprt status code.
     1157     * @param   Sock        Socket descriptor.
     1158     * @param   pvBuffer    Buffer to write data to socket.
     1159     * @param   cbBuffer    How much to write.
     1160     * @param   pcbWritten  Number of bytes written.
     1161     */
     1162    DECLR3CALLBACKMEMBER(int, pfnWriteNB, (VDSOCKET Sock, const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten));
     1163
     1164    /**
     1165     * Send data from scatter/gather buffer to a socket - not blocking.
     1166     *
     1167     * @return  iprt status code.
     1168     * @param   Sock        Socket descriptor.
     1169     * @param   pSgBuf      Scatter/gather buffer to write data to socket.
     1170     * @param   pcbWritten  Number of bytes written.
     1171     */
     1172    DECLR3CALLBACKMEMBER(int, pfnSgWriteNB, (VDSOCKET Sock, PRTSGBUF pSgBuf, size_t *pcbWritten));
     1173
     1174    /**
    11431175     * Flush socket write buffers.
    11441176     *
     
    11821214     * @retval  VERR_INTERRUPTED if the thread was woken up by a pfnPoke call.
    11831215     * @param   Sock        Socket descriptor.
     1216     * @param   fEvents     Mask of events to wait for.
    11841217     * @param   pfEvents    Where to store the received events.
    11851218     * @param   cMillies    Number of milliseconds to wait for the socket.
    11861219     *                      Use RT_INDEFINITE_WAIT to wait for ever.
    11871220     */
    1188     DECLR3CALLBACKMEMBER(int, pfnSelectOneEx, (VDSOCKET Sock, uint32_t *pfEvents, RTMSINTERVAL cMillies));
     1221    DECLR3CALLBACKMEMBER(int, pfnSelectOneEx, (VDSOCKET Sock, uint32_t fEvents,
     1222                                               uint32_t *pfEvents, RTMSINTERVAL cMillies));
    11891223
    11901224    /**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette