XML Feeds

.

[java-dev] Re: ftp in mxj example?

Owen Green owen at owengreen.net
Mon Aug 20 06:46:03 MDT 2007


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
> mailing list java-dev at cycling74.com 
> http://www.cycling74.com/mailman/listinfo/java-dev
> 



More information about the java-dev mailing list