VirtualBox

Changeset 27959 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Apr 2, 2010 3:46:08 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59663
Message:

iprt: added RTTcpSetSendCoalescing.

File:
1 edited

Legend:

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

    r27787 r27959  
    984984RTR3DECL(int)  RTTcpFlush(RTSOCKET Sock)
    985985{
    986 
    987986    int fFlag = 1;
    988987    int rc = rtSocketSetOpt(Sock, IPPROTO_TCP, TCP_NODELAY, &fFlag, sizeof(fFlag));
     
    996995
    997996
     997RTR3DECL(int)  RTTcpSetSendCoalescing(RTSOCKET Sock, bool fEnable)
     998{
     999    int fFlag = fEnable ? 0 : 1;
     1000    return rtSocketSetOpt(Sock, IPPROTO_TCP, TCP_NODELAY, &fFlag, sizeof(fFlag));
     1001}
     1002
     1003
    9981004RTR3DECL(int)  RTTcpSelectOne(RTSOCKET Sock, RTMSINTERVAL cMillies)
    9991005{
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