ftp in mxj example?

Jul 26, 2007 at 3:24pm

ftp in mxj example?

Hello,

Just hoping somebody wouldn’t mind giving me shove in the right direction in getting ftp working within mxj?

thanks,
Simon

#33042
Jul 26, 2007 at 4:28pm

On 07-07-26, at 0824, simon adcock wrote:
>
> Hello,
>
> Just hoping somebody wouldn’t mind giving me shove in the right
> direction in getting ftp working within mxj?
>
I used the apache jakarta commons net package to get telnet going
from within MXJ. A quick glance indicates that ftp is also supported
there.

http://jakarta.apache.org/commons/net/

r.

#109530
Jul 27, 2007 at 6:34pm

I’d suggest that route also.

There are unsupported ftp handlers from sun, but they’re liable to
vanish without apology.


O

Ritchie Argue wrote:
> I used the apache jakarta commons net package to get telnet going from
> within MXJ. A quick glance indicates that ftp is also supported there.
>
> http://jakarta.apache.org/commons/net/
>

#109531
Aug 20, 2007 at 11:25am

Thanks, I got it working. Unfortunetly Max grinds to a hault whilst it’s busy downloading/uploading! Don’t understand why though as Max is quite happy if I have some other ftp program running at the same time.

#109532
Aug 20, 2007 at 12:46pm

Hi Simon,

It’ll be using blocking sockets – that is, it halts the whole thread
when waiting for data from the socket. Solution: use a separate thread.

Other FTP programs, as separate processes, run in a different thread by
definition (hence the lack of blocking).

In FTP apps it is quite common to have one thread that handles the
socket communication for control messages and another for the data
transfer (as these use different sockets).


Owen

simon adcock wrote:
> Thanks, I got it working. Unfortunetly Max grinds to a hault whilst
> it’s busy downloading/uploading! Don’t understand why though as Max
> is quite happy if I have some other ftp program running at the same
> time. _______________________________________________ java-dev
>

#109533
Aug 20, 2007 at 1:13pm

Fantastic, it works really well now! Thank you.

#109534

You must be logged in to reply to this topic.