Changeset 3825:0a66c056ac51 in roaraudio for roard/emul_rsound.c
- Timestamp:
- 05/11/10 18:06:09 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/emul_rsound.c
r3824 r3825 39 39 char c[16]; 40 40 } buf; 41 42 // TODO: add error handling 43 roar_socket_nonblock(fh, ROAR_SOCKET_NONBLOCK); 41 44 42 45 if ( emul_rsound_lastcon == -1 ) { … … 212 215 } 213 216 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. 214 219 if ( emul_rsound_vrecv_msg(&msg, vio) == -1 ) 215 return clients_delete(client);220 return -1; 216 221 217 222 if ( !strncmp(msg.datasp, "INFO", 4) ) { … … 246 251 } else if ( !strncmp(msg.datasp, "NULL", 4) ) { 247 252 // NULL is simular to NOOP 248 return 0;249 253 } else if ( !strncmp(msg.datasp, "STOP", 4) ) { 250 254 // This is quit. … … 253 257 return clients_delete(client); 254 258 } 259 260 return 0; 255 261 } 256 262 #endif
Note: See TracChangeset
for help on using the changeset viewer.