VirtualBox

Changeset 30270 in vbox for trunk/include/iprt/socket.h


Ignore:
Timestamp:
Jun 17, 2010 6:56:26 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62784
Message:

Runtime/tcp+socket: Add function to write to a socket using a scatter/gather buffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/socket.h

    r28800 r30270  
    3131#include <iprt/thread.h>
    3232#include <iprt/net.h>
     33#include <iprt/sg.h>
    3334
    3435#ifdef IN_RING0
     
    176177RTDECL(int) RTSocketGetPeerAddress(RTSOCKET hSocket, PRTNETADDR pAddr);
    177178
     179/**
     180 * Send data from a scatter/gather buffer to a socket.
     181 *
     182 * @returns IPRT status code.
     183 * @retval  VERR_INTERRUPTED if interrupted before anything was written.
     184 *
     185 * @param   hSocket         The socket handle.
     186 * @param   pSgBuf          Scatter/gather buffer to write data to socket.
     187 */
     188RTDECL(int) RTSocketSgWrite(RTSOCKET hSocket, PCRTSGBUF pSgBuf);
     189
    178190/** @} */
    179191RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

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