1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors io io.crlf kernel sequences ;
6 SYMBOLS: +active+ +passive+ ;
8 TUPLE: ftp-response n strings parsed ;
10 : <ftp-response> ( -- ftp-response )
12 V{ } clone >>strings ;
14 : add-response-line ( ftp-response string -- ftp-response )
17 : ftp-send ( string -- ) write crlf flush ;