home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl_ste.zip
/
auto
/
Net
/
FTP
/
abort.al
< prev
next >
Wrap
Text File
|
1997-11-28
|
568b
|
27 lines
# NOTE: Derived from ./blib/lib/Net/FTP.pm. Changes made here will be lost.
package Net::FTP;
sub abort
{
my $ftp = shift;
send($ftp,pack("CC",$TELNET_IAC,$TELNET_IP),0);
send($ftp,pack("CC", $TELNET_IAC, $TELNET_DM),MSG_OOB);
$ftp->command("ABOR");
# defined ${*$ftp}{'net_ftp_dataconn'}
# ? ${*$ftp}{'net_ftp_dataconn'}->close()
# : $ftp->response();
${*$ftp}{'net_ftp_dataconn'}->close()
if defined ${*$ftp}{'net_ftp_dataconn'};
$ftp->response();
# if $ftp->status == CMD_REJECT;
$ftp->status == CMD_OK;
}
1;