##
## Generic data connection package
##
use Carp;
use Errno;
$VERSION = '0.11';
sub reading
{
my $data = shift;
}
sub abort
{
my $data = shift;
# no need to abort if we have finished the xfer
return $data->close
if ${*$data}{'net_ftp_eof'};
# for some reason if we continously open RETR connections and not
# read a single byte, then abort them after a while the server will
# close our connection, this prevents the unexpected EOF on the
# command channel -- GMB
if(exists ${*$data}{'net_ftp_bytesread'}
my $buf="";
}
}
sub _close
{
my $data = shift;
delete ${*$ftp}{'net_ftp_dataconn'}
if exists ${*$ftp}{'net_ftp_dataconn'} &&
}
sub close
{
my $data = shift;
my $junk;
}
}
sub _select {
while (1) {
last if $nfound >= 0;
croak "select: $!"
unless $!{EINTR};
}
$nfound;
}
sub can_read
{
}
sub can_write
{
}
sub cmd
{
my $ftp = shift;
${*$ftp}{'net_ftp_cmd'};
}
sub bytes_read {
my $ftp = shift;
}
1;