Changeset 27959 in vbox
- Timestamp:
- Apr 2, 2010 3:46:08 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59663
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/tcp.h
r27787 r27959 220 220 221 221 /** 222 * Enables or disable delaying sends to coalesce packets. 223 * 224 * The TCP/IP stack usually uses the Nagle algorithm (RFC 896) to implement the 225 * coalescing. 226 * 227 * @returns iprt status code. 228 * @param Sock Socket descriptor. 229 */ 230 RTR3DECL(int) RTTcpSetSendCoalescing(RTSOCKET Sock, bool fEnable); 231 232 /** 222 233 * Socket I/O multiplexing. 223 234 * Checks if the socket is ready for reading. -
trunk/src/VBox/Runtime/r3/tcp.cpp
r27787 r27959 984 984 RTR3DECL(int) RTTcpFlush(RTSOCKET Sock) 985 985 { 986 987 986 int fFlag = 1; 988 987 int rc = rtSocketSetOpt(Sock, IPPROTO_TCP, TCP_NODELAY, &fFlag, sizeof(fFlag)); … … 996 995 997 996 997 RTR3DECL(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 998 1004 RTR3DECL(int) RTTcpSelectOne(RTSOCKET Sock, RTMSINTERVAL cMillies) 999 1005 {
Note:
See TracChangeset
for help on using the changeset viewer.