Changeset 1024:27fc71901f66 in roaraudio for roarclients/roarmonhttp.c


Ignore:
Timestamp:
12/21/08 15:16:19 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added options for bits, channels and rate, print server name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarmonhttp.c

    r1023 r1024  
    4040 
    4141 printf("Content-type: %s\r\n", mime); 
     42 printf("Server: RoarAudio (roarmonhttp $Revision$)\r\n"); 
    4243 printf("\r\n"); 
    4344 
     
    152153   if ( (codec = roar_str2codec(v)) == -1 ) 
    153154    return 1; 
     155  } else if ( !strcmp(k, "channels") ) { 
     156   channels = atoi(v); 
     157  } else if ( !strcmp(k, "rate") ) { 
     158   rate = atoi(v); 
     159  } else if ( !strcmp(k, "bits") ) { 
     160   bits = atoi(v); 
    154161  } else { 
    155162   return 1; 
Note: See TracChangeset for help on using the changeset viewer.