hi all
i maked an ftp sockets but don't work exactly.
The ftp request PORT or PASV method don't work. i have read the rfc 959 but i don't understand the PASV method.
here there is the mirc code:
alias ftp { sockopen ftp ftp.name.com 21 }
on 1:sockopen:ftp:{
if ($sockerr > 0) return
echo -a Connection on ftp
sockwrite -n $sockname USER user
sockwrite -n $sockname PASS password
sockwrite -n $sockname PASV
sockwrite -n $sockname RETR addon.mrc
sockwrite -n $sockname QUIT
}
on *:sockread:ftp:{
if ($sockerr > 0) return
:prox
sockread %variable
if ($sockbr == 0) { return }
echo -a %variable
goto prox
}
on *:sockclose:ftp:{ echo -a Socket $sockname closed }