Changeset 4692:834121094e10 in roaraudio
- Timestamp:
- 12/28/10 16:18:10 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/socket.c
r4554 r4692 397 397 char * proxy_type = getenv("ROAR_PROXY"); 398 398 399 ROAR_DBG("roar_socket_connect(host='%s', port=%i) = ?", host, port); 400 399 401 if ( proxy_type == NULL || strcmp(proxy_type, "") == 0 ) { 400 402 return roar_socket_open(MODE_CONNECT, ROAR_SOCKET_TYPE_UNKNOWN, host, port); … … 527 529 char * del; 528 530 #endif 531 532 ROAR_DBG("roar_socket_open(mode=%i, type=%i, host='%s', port=%i) = ?", mode, type, host, port); 529 533 530 534 if ( mode == MODE_LISTEN ) … … 550 554 551 555 556 ROAR_DBG("roar_socket_open(mode=%i, type=%i, host='%s', port=%i) = ?", mode, type, host, port); 557 552 558 ROAR_DBG("roar_socket_open(*): type=%s, host='%s', port=%i", 553 559 type == ROAR_SOCKET_TYPE_UNIX ? "UNIX" : "???", host, port); … … 614 620 } 615 621 622 ROAR_DBG("roar_socket_open(*): he=%p", he); 623 616 624 memcpy((struct in_addr *)&socket_addr.in.sin_addr, he->h_addr, sizeof(struct in_addr)); 617 625 … … 622 630 fh = roar_socket_new_tcp(); 623 631 632 ROAR_DBG("roar_socket_open(*): fh=%i", fh); 633 624 634 if ( fh == -1 ) { 625 635 ROAR_ERR("roar_socket_open(*): Can\'t create TCP socket: %s", strerror(errno)); … … 628 638 629 639 ROAR_DBG("roar_socket_open(*) = ?"); 640 641 ROAR_DBG("roar_socket_open(*): fh=%i", fh); 630 642 631 643 if ( mode_func(fh, (struct sockaddr *)&socket_addr.in, sizeof(struct sockaddr_in)) == -1 ) { … … 634 646 return -1; 635 647 } 648 649 ROAR_DBG("roar_socket_open(*): fh=%i", fh); 650 636 651 // hey! we have a socket... 637 652 ROAR_DBG("roar_socket_open(*) = ? // we have a socket :)"); 638 653 #else 654 ROAR_DBG("roar_socket_open(*) = -1 // no IPv4 or IPv6 support"); 639 655 return -1; 640 656 #endif -
libroar/vio.c
r3898 r4692 295 295 int fh; 296 296 297 ROAR_DBG("roar_vio_simple_new_stream_obj(*) = ?"); 298 297 299 if ( calls == NULL ) 298 300 return -1; … … 304 306 if ( (fh = roar_simple_new_stream_obj(con, s, rate, channels, bits, codec, dir)) == -1 ) { 305 307 roar_libroar_warn(); 308 ROAR_DBG("roar_vio_simple_new_stream_obj(*) = -1"); 306 309 return -1; 307 310 } 308 311 roar_libroar_warn(); 312 313 ROAR_DBG("roar_vio_simple_new_stream_obj(*): fh=%i", fh); 309 314 310 315 return roar_vio_open_fh_socket(calls, fh);
Note: See TracChangeset
for help on using the changeset viewer.