Changeset 217:48dcd8412a44 in roaraudio
- Timestamp:
- 07/21/08 20:09:24 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/file.c
r215 r217 27 27 int len; 28 28 char buf[BUFSIZE]; 29 #ifdef __linux__ 30 int cork_new = 1, cork_old; 31 socklen_t cork_len = sizeof(int); 32 33 getsockopt(out, IPPROTO_TCP, TCP_CORK, &cork_old, &cork_len); 34 setsockopt(out, IPPROTO_TCP, TCP_CORK, &cork_new, sizeof(int)); 35 #endif 29 36 30 37 #ifdef ROAR_HAVE_LINUX_SENDFILE … … 38 45 r += write(out, buf, len); 39 46 47 #ifdef __linux__ 48 setsockopt(out, IPPROTO_TCP, TCP_CORK, &cork_old, cork_len); 49 #endif 40 50 return r; 41 51 }
Note: See TracChangeset
for help on using the changeset viewer.