Changeset 4692:834121094e10 in roaraudio


Ignore:
Timestamp:
12/28/10 16:18:10 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some more debug lions

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r4554 r4692  
    397397 char * proxy_type = getenv("ROAR_PROXY"); 
    398398 
     399 ROAR_DBG("roar_socket_connect(host='%s', port=%i) = ?", host, port); 
     400 
    399401 if ( proxy_type == NULL || strcmp(proxy_type, "") == 0 ) { 
    400402  return roar_socket_open(MODE_CONNECT, ROAR_SOCKET_TYPE_UNKNOWN, host, port); 
     
    527529 char * del; 
    528530#endif 
     531 
     532 ROAR_DBG("roar_socket_open(mode=%i, type=%i, host='%s', port=%i) = ?", mode, type, host, port); 
    529533 
    530534 if ( mode == MODE_LISTEN ) 
     
    550554 
    551555 
     556 ROAR_DBG("roar_socket_open(mode=%i, type=%i, host='%s', port=%i) = ?", mode, type, host, port); 
     557 
    552558 ROAR_DBG("roar_socket_open(*): type=%s, host='%s', port=%i", 
    553559             type == ROAR_SOCKET_TYPE_UNIX ? "UNIX" : "???", host, port); 
     
    614620  } 
    615621 
     622   ROAR_DBG("roar_socket_open(*): he=%p", he); 
     623 
    616624   memcpy((struct in_addr *)&socket_addr.in.sin_addr, he->h_addr, sizeof(struct in_addr)); 
    617625 
     
    622630  fh = roar_socket_new_tcp(); 
    623631 
     632  ROAR_DBG("roar_socket_open(*): fh=%i", fh); 
     633 
    624634  if ( fh == -1 ) { 
    625635   ROAR_ERR("roar_socket_open(*): Can\'t create TCP socket: %s", strerror(errno)); 
     
    628638 
    629639  ROAR_DBG("roar_socket_open(*) = ?"); 
     640 
     641  ROAR_DBG("roar_socket_open(*): fh=%i", fh); 
    630642 
    631643   if ( mode_func(fh, (struct sockaddr *)&socket_addr.in, sizeof(struct sockaddr_in)) == -1 ) { 
     
    634646    return -1; 
    635647   } 
     648 
     649  ROAR_DBG("roar_socket_open(*): fh=%i", fh); 
     650 
    636651  // hey! we have a socket... 
    637652  ROAR_DBG("roar_socket_open(*) = ? // we have a socket :)"); 
    638653#else 
     654  ROAR_DBG("roar_socket_open(*) = -1 // no IPv4 or IPv6 support"); 
    639655  return -1; 
    640656#endif 
  • libroar/vio.c

    r3898 r4692  
    295295 int fh; 
    296296 
     297 ROAR_DBG("roar_vio_simple_new_stream_obj(*) = ?"); 
     298 
    297299 if ( calls == NULL ) 
    298300  return -1; 
     
    304306 if ( (fh = roar_simple_new_stream_obj(con, s, rate, channels, bits, codec, dir)) == -1 ) { 
    305307  roar_libroar_warn(); 
     308  ROAR_DBG("roar_vio_simple_new_stream_obj(*) = -1"); 
    306309  return -1; 
    307310 } 
    308311 roar_libroar_warn(); 
     312 
     313 ROAR_DBG("roar_vio_simple_new_stream_obj(*): fh=%i", fh); 
    309314 
    310315 return roar_vio_open_fh_socket(calls, fh); 
Note: See TracChangeset for help on using the changeset viewer.