$ftp = Net::FTP -> new ( $addr, Passive => 0, Timeout => $timeout )
or die "Failed to connect to FTP (w/ active, timeout): $addr";
什么是 C# 相当于实现一个像上面这样的新 ftp 客户端,还有登录和控制传输模式,如:
$ftp -> login ( $usr, $pwd )
or die "Failed to login to FTP: " . $ftp->message;
{ $ftp -> ascii(); }
{ $ftp -> binary(); }