[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Anarchie FTP question



At 12.13 -0400 1998.09.04, Dan Bongert wrote:
>Quoth Paul J. Schinder:
>
>>Have you checked to see whether this error message is right?  It seems
>>to me Anarchie is telling you the file isn't there.  The Info-Mac
>>archives don't always immediately have the stuff in the latest
>>Info-Mac digest.
>
>It's there and the first file is downloaded correctly--the download
>actually continues after the error message comes up in Perl. I think what's
>happening is MacPerl is waiting for Anarchie to tell it that the download
>is done so it can do the next, and it's timing out. Does that sound right?

That can happen.  The standard kAEWaitReply() can time out.  You can set it
to kAENoReply, or set it to wait for a really long time.

   $reply = AESend($event, kAEWaitReply(), kAENormalPriority(), 3600*9999);

3600*9999 is actually the default in Mac::AppleEvents::Simple.  If I ever
do a rewrite of Mac::Apps::Anarchie, then it will use
Mac::AppleEvents::Simple.  Until then, you can just hack the AESend
statement in the Anarchie.pm file.

There is already facility built in to Mac::Apps::Anarchie for kAENoReply:

  $ftp->waitreply(0);

Anarchie.pm is kinda ugly; it was one of the first modules I wrote (maybe
it was the first?).  But it is functional ...

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch