Changeset 3825:0a66c056ac51 in roaraudio for roard/emul_rsound.c


Ignore:
Timestamp:
05/11/10 18:06:09 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

get INFO requets working at full speed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/emul_rsound.c

    r3824 r3825  
    3939  char c[16]; 
    4040 } buf; 
     41 
     42 // TODO: add error handling 
     43 roar_socket_nonblock(fh, ROAR_SOCKET_NONBLOCK); 
    4144 
    4245 if ( emul_rsound_lastcon == -1 ) { 
     
    212215 } 
    213216 
     217 // we get called in a loop, in case this fails no problem, just 
     218 // return -1, caller will delete us in case of real error. 
    214219 if ( emul_rsound_vrecv_msg(&msg, vio) == -1 ) 
    215   return clients_delete(client); 
     220  return -1; 
    216221 
    217222 if ( !strncmp(msg.datasp, "INFO", 4) ) { 
     
    246251 } else if ( !strncmp(msg.datasp, "NULL", 4) ) { 
    247252  // NULL is simular to NOOP 
    248   return 0; 
    249253 } else if ( !strncmp(msg.datasp, "STOP", 4) ) { 
    250254  // This is quit. 
     
    253257  return clients_delete(client); 
    254258 } 
     259 
     260 return 0; 
    255261} 
    256262#endif 
Note: See TracChangeset for help on using the changeset viewer.