tsnetwork_cork.h 381 B

12345678910111213141516171819
  1. #ifndef NETWORK_CORK_H_
  2. #define NETWORK_CORK_H_
  3. /**
  4. * network_cork(fd):
  5. * Clear the TCP_NODELAY socket option, and set TCP_CORK or TCP_NOPUSH if
  6. * either is defined.
  7. */
  8. int network_cork(int);
  9. /**
  10. * network_uncork(fd):
  11. * Set the TCP_NODELAY socket option, and clear TCP_CORK or TCP_NOPUSH if
  12. * either is defined.
  13. */
  14. int network_uncork(int);
  15. #endif /* !NETWORK_CORK_H_ */