Changeset 577:4c82e13a6b3e in roaraudio


Ignore:
Timestamp:
08/19/08 14:37:43 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added command terminate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r540 r577  
    2626        "  standbymode             - Show current standby mode\n" 
    2727        "  exit                    - Quits the roard (must be used as last command)\n" 
     28        "  terminate               - Like exit but let the server up to serve still connected clients,\n" 
     29        "                            new clients cann't connect and the server terminates after the last\n" 
     30        "                            client disconnected\n" 
    2831        "\n" 
    2932        "  volume ID CHAN V0 V1... - Sets volume for stream ID\n" 
     
    402405    break; 
    403406   } 
     407  } else if ( !strcmp(k, "terminate") ) { 
     408   if ( roar_terminate(&con, 1) == -1 ) { 
     409    fprintf(stderr, "Error: can not terminate server\n"); 
     410   } else { 
     411    printf("Server got asked to quited\n"); 
     412    break; 
     413   } 
    404414 
    405415  } else if ( !strcmp(k, "standbymode") ) { 
Note: See TracChangeset for help on using the changeset viewer.