Changeset 968:82561f5f0063 in roaraudio


Ignore:
Timestamp:
12/09/08 23:36:08 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

set recv buffer to minimum for streams

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/socket.h

    r873 r968  
    9191int roar_socket_nonblock(int fh, int state); 
    9292int roar_socket_decnet_set_timeout (int fh, time_t sec, int usec); 
     93int roar_socket_recvbuf(int fh, int len); 
    9394 
    9495int roar_socket_dup_udp_local_end (int fh); 
  • libroar/socket.c

    r890 r968  
    119119} 
    120120 
     121int roar_socket_recvbuf(int fh, int len) { 
     122 if ( len < 256 ) len = 256; 
     123 
     124 return setsockopt(fh, SOL_SOCKET, SO_RCVBUF, &len, sizeof(len)); 
     125} 
     126 
    121127int roar_socket_new_decnet_seqpacket (void) { 
    122128#ifdef ROAR_HAVE_LIBDNET 
  • roard/streams.c

    r937 r968  
    195195 } 
    196196 
     197 roar_socket_recvbuf(fh, 0); // set recv buffer to minimum 
     198 
    197199 dir = ROAR_STREAM(g_streams[id])->dir; 
    198200 
Note: See TracChangeset for help on using the changeset viewer.