Roxen.git / server / plugins / protocols / ftp.pike

version» Context lines:

Roxen.git/server/plugins/protocols/ftp.pike:1:   // This is a roxen protocol module.   // Copyright © 1997 - 2001, Roxen IS.      /*    * FTP protocol mk 2    * -  * $Id: ftp.pike,v 2.105 2004/07/08 23:32:55 _cvs_stephen Exp $ +  * $Id: ftp.pike,v 2.106 2004/07/09 00:47:05 _cvs_stephen Exp $    *    * Henrik Grubbström <grubba@roxen.com>    */      /*    * TODO:    *    * How much is supposed to be logged?    */   
Roxen.git/server/plugins/protocols/ftp.pike:191:    "clone_me", "end", "ready_to_receive",    "send", "scan_for_query", "make_response_headers",    "send_result", "misc", "get_if_data",    "url_base", "set_response_header", "get_xml_data",    "add_response_header", "set_output_charset",    "adjust_for_config_path", "PrefLanguages",    "get_multi_status", "multi_status_size",    "set_status_for_path", "set_status_for_url",    "charset_name", "charset_function", "join_charset",    "output_encode", -  "destroy", "_num", "__num">)[var]) { +  "destroy", "_sprintf", "_num", "__num">)[var]) {   #ifdef FTP2_DEBUG    if (catch {   #endif /* FTP2_DEBUG */    o[var] = m_rid[var];   #ifdef FTP2_DEBUG    }) {    report_error("FTP2: "    "Failed to copy variable %s (value:%O)\n",    var, m_rid[var]);    }
Roxen.git/server/plugins/protocols/ftp.pike:2031:    send_done_callback( fd, session, r->sent_data() );    } );    master_session->file = session->file = file;    if(stringp(file->data)) {    pipe->add_source(file->data,0,sizeof(file->data));    }    if(file->file) {    int off;    file->file->set_blocking();    catch( off = file->tell() ); -  pipe->add_source( file->file, max(off,0), (file->len||-1) ); +  pipe->add_source( file->file, max(off,0), (file->len>0||-1) );    }    pipe->start();    curr_pipe = pipe;    }       static private void connected_to_receive(object fd, string data, string args)    {    DWRITE("FTP: connected_to_receive(X, %O, %O)\n", data, args);       touch_me();