Changeset 1112:3e36ee114b3e in roaraudio


Ignore:
Timestamp:
01/14/09 18:41:52 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected fh and select() usage for bidirectional streams, roarbidir works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarbidir.c

    r826 r1112  
    111111    if ( (i = read(fh, buf, BUFSIZE)) == -1 ) 
    112112     return -1; 
    113     if ( write(in, buf, i) != i ) 
     113    if ( write(out, buf, i) != i ) 
    114114     return -1; 
    115    } else { 
     115   } 
     116   if ( FD_ISSET(in, &sl) ) { 
    116117    if ( (i = read(in, buf, BUFSIZE)) == -1 ) 
    117118     return -1; 
Note: See TracChangeset for help on using the changeset viewer.