Changeset 1154:81d313974e39 in roaraudio for libroar/socket.c


Ignore:
Timestamp:
01/22/09 15:14:21 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

set TCP_NODELAY on new tcp streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r1119 r1154  
    4343 int opt = IPTOS_LOWDELAY; 
    4444#endif 
     45#ifdef TCP_NODELAY 
     46 int t   = 1; 
     47#endif 
    4548 
    4649 fh = socket(PF_INET, SOCK_STREAM, 0); 
     
    4851#ifndef ROAR_TARGET_WIN32 
    4952 setsockopt(fh, IPPROTO_IP, IP_TOS, &opt, sizeof(int)); 
     53#endif 
     54#ifdef TCP_NODELAY 
     55 setsockopt(fh, IPPROTO_TCP, TCP_NODELAY, &t, sizeof(int)); 
    5056#endif 
    5157 
Note: See TracChangeset for help on using the changeset viewer.