Changeset 4236:1d583a76aa06 in roaraudio


Ignore:
Timestamp:
08/25/10 02:28:14 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

add more debug lions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r4235 r4236  
    9696  return -1; 
    9797 
     98 ROAR_DBG("req_on_new_stream(client=%i, ...): stream=%i", client, stream); 
     99 
    98100 ROAR_DBG("req_on_new_stream(client=%i, ...): getting stream...", client); 
    99101 if ( streams_get(stream, (struct roar_stream_server **)&s) == -1 ) { 
     
    221223 } 
    222224 
    223  ROAR_DBG("req_on_new_stream(client=%i, ...): returning (OK)...", client); 
     225 ROAR_DBG("req_on_new_stream(client=%i, ...): returning (OK, stream=%i)...", client, stream); 
    224226 
    225227 mes->cmd     = ROAR_CMD_OK; 
     
    307309 int i; 
    308310 
     311 ROAR_DBG("req_on_passfh(client=%i, mes={stream=%i,...},...) = ?", client, mes->stream); 
     312 
    309313 if ( (fh = roar_socket_recv_fh(sock, NULL, NULL)) == -1 ) 
    310314  return -1; 
    311315 
     316 ROAR_DBG("req_on_passfh(client=%i, mes={stream=%i,...},...): fh=%i", client, mes->stream, fh); 
     317 
    312318 if ( mes->stream != -1 ) { // stream pass: 
     319  ROAR_DBG("req_on_passfh(client=%i, mes={stream=%i,...},...): This is a stream passfh", client, mes->stream); 
     320 
    313321  if ( client_stream_set_fh(client, mes->stream, fh) == -1 ) { 
    314322   close(fh); 
     323   ROAR_DBG("req_on_passfh(client=%i, mes={stream=%i,...},...): returning (ERROR)...", client, mes->stream); 
    315324   return -1; 
    316325  } 
     326 
     327  ROAR_DBG("req_on_passfh(client=%i, mes={stream=%i,...},...): returning (OK)...", client, mes->stream); 
    317328 
    318329  mes->datalen = 0; 
     
    323334 
    324335// non-stream pass: 
     336 
     337 ROAR_DBG("req_on_passfh(client=%i, mes={stream=%i,...},...): This is a client passfh", client, mes->stream); 
    325338 
    326339/* 
     
    363376   return -1; 
    364377 } 
     378 
     379 ROAR_DBG("req_on_passfh(client=%i, mes={stream=%i,...},...): returning (OK)...", client, mes->stream); 
    365380 
    366381 mes->datalen = 0; 
Note: See TracChangeset for help on using the changeset viewer.