Changeset 3510:4eb770a49d50 in roaraudio


Ignore:
Timestamp:
02/15/10 02:37:23 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use roar_simple_connect()...

Location:
roarclients
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r3213 r3510  
    849849 // connect 
    850850 
    851  if ( roar_connect(&con, server) == -1 ) { 
     851 if ( roar_simple_connect(&con, server, "roarctl") == -1 ) { 
    852852  fprintf(stderr, "Error: Can not connect to server\n"); 
    853   return 1; 
    854  } 
    855  
    856  if ( roar_identify(&con, "roarctl") == -1 ) { 
    857   fprintf(stderr, "Error: Can not identify to server\n"); 
    858853  return 1; 
    859854 } 
  • roarclients/roarlight.c

    r2052 r3510  
    124124 } 
    125125 
    126  if ( roar_connect(&con, server) == -1 ) { 
     126 if ( roar_simple_connect(&con, server, "roarlight") == -1 ) { 
    127127  fprintf(stderr, "Error: Can not connect to server\n"); 
    128   return 1; 
    129  } 
    130  
    131  if ( roar_identify(&con, "roarlight") == -1 ) { 
    132   fprintf(stderr, "Error: Can not identify to server\n"); 
    133   roar_disconnect(&con); 
    134128  return 1; 
    135129 } 
Note: See TracChangeset for help on using the changeset viewer.