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.13 2002/11/19 00:56:27 _cvs_hop Exp $"; + constant cvs_version="$Id: icecast.pike,v 1.14 2004/05/23 14:14:38 _cvs_dirix 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:340:    i = ("HTTP/1.0 200 OK\r\n"    "Server: "+roxen.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_object(), +  stream, this,    lambda( Connection c ){    int pt = time()-c->connected;    conn -= ({ c });    total_time += pt;    if( pt > max_time )    max_time = pt;    successful++;    connections--;    }, client_udp ) });    return Roxen.http_pipe_in_progress( );
Roxen.git/server/modules/icecast/icecast.pike:587:    if(cudp && udpstream)    send_udptitle();    }       static void closed( )    {    catch(fd->set_blocking( )); //hop@: zachyceno. BTW: nejspis je zbytecne?    fd = 0;    stream->remove_callback( callback );    stream->get_playlist()->remove_md_callback( md_callback ); -  _ccb( this_object() ); +  _ccb( this );    werror("Closed from client side\n"); - // destruct( this_object() ); + // destruct( this );    }       static void create( Stdio.File _fd, string buffer,    string prot, int _meta, MPEGStream _stream,    Location _loc, function _closed, int _cudp )    {    location = _loc;    protocol = prot;    fd = _fd;    do_meta = _meta;