Roxen.git / server / modules / icecast / icecast.pike

version» Context lines:

Roxen.git/server/modules/icecast/icecast.pike:1:   // This is a ChiliMoon module. Copyright © 2001, Roxen IS.      inherit "module"; - constant cvs_version="$Id: icecast.pike,v 1.14 2004/05/23 14:14:38 _cvs_dirix Exp $"; + constant cvs_version="$Id: icecast.pike,v 1.15 2004/05/31 23:01:52 _cvs_stephen Exp $";   constant thread_safe=1;      #define BSIZE 16384   #define METAINTERVAL 8192      #include <module.h>   #include <roxen.h>   #include <stat.h>   #include <request_trace.h>   
Roxen.git/server/modules/icecast/icecast.pike:302:    {    protocol = "AudioCast";    if(id->request_headers[ "icy-metadata" ] &&    query("udpmeta") ) {    metahd = "x-audiocast-udpport: " + query("udpmeta") + "\r\n";    client_udp = (int)id->request_headers[ "x-audiocast-udpport" ] ;    use_metadata = 0;    }       i = ("HTTP/1.0 200 OK\r\n" -  "Server: "+roxen.version()+"\r\n" +  "Server: "+core.version()+"\r\n"    "Content-type: audio/mpeg\r\n"    "x-audiocast-gengre:"+(meta->gengre||"unknown")+"\r\n"    +((meta->url||url)?"x-audiocast-url:"+(meta->url||url)+"\r\n":"")+    "x-audiocast-name:"+name+"\r\n"    "x-audiocast-streamid:1\r\n"+metahd+    "x-audiocast-public:1\r\n"    "x-audiocast-bitrate:"+(stream->bitrate/1000)+"\r\n"    "x-audiocast-description:Served by ChiliMoon\r\n"    "\r\n" );    }    else    {    if( id->request_headers[ "icy-metadata" ] )    i = ("ICY 200 OK\r\n" -  "Server: "+roxen.version()+"\r\n" +  "Server: "+core.version()+"\r\n"    "Content-type: audio/mpeg\r\n"    "icy-notice1:This stream requires a shoutcast compatible player.\r\n"    "icy-notice2:ChiliMoon mod_mp3\r\n"+metahd+    "icy-name:"+name+"\r\n"    "icy-gengre:"+(meta->gengre||"unknown")+"\r\n"    +((meta->url||url)?"icy-url:"+(meta->url||url)+"\r\n":"")+    "icy-pub:1\r\n"    "icy-br:"+(stream->bitrate/1000)+"\r\n"    "\r\n" );    else {    werror("MS Player?\n");    protocol = "AudioCast";    i = ("HTTP/1.0 200 OK\r\n" -  "Server: "+roxen.version()+"\r\n" +  "Server: "+core.version()+"\r\n"    "Content-type: audio/mpeg\r\n"    "Content-Length: 9999999999\r\n" );    }    }    if( initial )    i += initial;       conn += ({ Connection( id->my_fd, i,protocol,use_metadata,    stream, this,    lambda( Connection c ){