ftp in mxj example?

simon adcock's icon

Hello,

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

thanks,
Simon

maxmspjit's icon

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.

r.

Owen Green's icon

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/
>

simon adcock's icon

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.

Owen Green's icon

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
>

simon adcock's icon

Fantastic, it works really well now! Thank you.