Changeset 759:be1544e081ad in roaraudio


Ignore:
Timestamp:
09/05/08 04:47:19 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added debug code, got roar_stream_passfh() working

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r754 r759  
    220220 char             localmes[1] = {0}; 
    221221 
     222 ROAR_DBG("roar_socket_send_fh(sock=%i, fh=%i, mes=%p, len=%u) = ?", sock, fh, mes, len); 
     223 
    222224 if ( sock < 0 || fh < 0 ) 
    223225  return -1; 
  • libroar/stream.c

    r758 r759  
    157157 m.stream  = s->id; 
    158158 m.pos     = 0; 
    159  
    160  if ( roar_send_message(con, &m, NULL) == -1 ) 
    161   return -1; 
     159 m.datalen = 0; 
     160 
     161 ROAR_DBG("roar_stream_passfh(con={.fh=%i,...}, s={.id=%i,...}, fh=%i) = ?", con->fh, s->id, fh); 
     162 
     163 if ( roar_send_message(con, &m, NULL) == -1 ) { 
     164  ROAR_DBG("roar_stream_passfh(con={.fh=%i,...}, s={.id=%i,...}, fh=%i) = -1 // can not send message", con->fh, s->id, fh); 
     165  return -1; 
     166 } 
     167 
     168 ROAR_DBG("roar_stream_passfh(*): msg send"); 
    162169 
    163170 if ( roar_socket_send_fh(con->fh, fh, NULL, 0) == -1 ) 
    164171  return -1; 
    165172 
     173 ROAR_DBG("roar_stream_passfh(*): fh send"); 
     174 
    166175 if ( roar_recv_message(con, &m, NULL) == -1 ) 
    167176  return -1; 
     177 
     178 ROAR_DBG("roar_stream_passfh(*): mes recved"); 
    168179 
    169180 return 0; 
Note: See TracChangeset for help on using the changeset viewer.