Handbook
Glossary
client-loop-dispatch ( str/f -- ? )
Vocabulary
ftp
.
server
Inputs
str/f
an
object
Outputs
?
an
object
Definition
USING:
accessors
combinators
kernel
sequences
unicode
;
IN:
ftp.server
:
client-loop-dispatch
( str/f -- ? )
dup
tokenized>>
first
>upper
{
{
"QUIT"
[
handle-QUIT
f
]
}
{
"USER"
[
handle-USER
t
]
}
{
"PASS"
[
handle-PASS
t
]
}
{
"SYST"
[
handle-SYST
t
]
}
{
"ACCT"
[
drop
"ACCT unimplemented"
ftp-unimplemented
t
]
}
{
"PWD"
[
handle-PWD
t
]
}
{
"TYPE"
[
handle-TYPE
t
]
}
{
"CWD"
[
handle-CWD
t
]
}
{
"PASV"
[
handle-PASV
t
]
}
{
"EPSV"
[
handle-EPSV
t
]
}
{
"LIST"
[
handle-LIST
t
]
}
{
"STOR"
[
handle-STOR
t
]
}
{
"RETR"
[
handle-RETR
t
]
}
{
"SIZE"
[
handle-SIZE
t
]
}
{
"MDTM"
[
handle-MDTM
t
]
}
[
drop
unrecognized-command
t
]
}
case
;