Roxen.git
/
server
/
plugins
/
protocols
/
ftp.pike
version
»
Context lines:
10
20
40
80
file
none
3
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.
106
2004/07/09 00:
47
:
05
_cvs_stephen Exp $
+
* $Id: ftp.pike,v 2.
107
2004/07/09 00:
59
:
01
_cvs_stephen Exp $
* * Henrik Grubbström <grubba@roxen.com> */ /* * TODO: * * How much is supposed to be logged? */
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>0
||
-1)
)
;
+
pipe->add_source(file->file, max(off,0),
file->len>0
?file
-
>len:-
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();