VirtualBox

Changeset 70482 in vbox


Ignore:
Timestamp:
Jan 7, 2018 6:46:33 PM (7 years ago)
Author:
vboxsync
Message:

iprt/socket,tcp,pollset: Added RTTcpCreatePair. Implemented polling fallback for winsock 1.x. Extended tstRTPoll to cover sockets and actual waiting and receiving of events on pipe & socket events.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/tcp.cpp

    r69111 r70482  
    10211021
    10221022
     1023/**
     1024 * Creates connected pair of TCP sockets.
     1025 *
     1026 * @returns IPRT status code.
     1027 * @param   phServer            Where to return the "server" side of the pair.
     1028 * @param   phClient            Where to return the "client" side of the pair.
     1029 *
     1030 * @note    There is no server or client side, but we gotta call it something.
     1031 */
     1032RTR3DECL(int) RTTcpCreatePair(PRTSOCKET phServer, PRTSOCKET phClient, uint32_t fFlags)
     1033{
     1034    /*
     1035     * Validate input.
     1036     */
     1037    AssertPtrReturn(phServer, VERR_INVALID_PARAMETER);
     1038    AssertPtrReturn(phClient, VERR_INVALID_PARAMETER);
     1039    AssertReturn(!fFlags, VERR_INVALID_PARAMETER);
     1040
     1041    /*
     1042     * Do the job.
     1043     */
     1044    return rtSocketCreateTcpPair(phServer, phClient);
     1045}
     1046
     1047
    10231048RTR3DECL(int) RTTcpRead(RTSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead)
    10241049{
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