! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors io kernel sequences ;
+USING: accessors io io.crlf kernel sequences ;
IN: ftp
SYMBOLS: +active+ +passive+ ;
: add-response-line ( ftp-response string -- ftp-response )
over strings>> push ;
-: ftp-send ( string -- ) write "\r\n" write flush ;
+: ftp-send ( string -- ) write crlf flush ;
! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors assocs combinators combinators.smart
-destructors fry io io.encodings.utf8 kernel managed-server
-namespaces parser sequences sorting splitting strings.parser
-unicode.case unicode.categories calendar calendar.format
-locals io.encodings.binary io.encodings.string prettyprint ;
+USING: accessors assocs calendar calendar.format
+combinators.smart io io.crlf io.encodings.utf8 kernel locals
+managed-server namespaces sequences sorting splitting
+unicode.case ;
FROM: namespaces => set ;
IN: managed-server.chat
CONSTANT: line-beginning "-!- "
: send-line ( string -- )
- write "\r\n" write flush ;
+ write crlf flush ;
: handle-me ( string -- )
[