Re: Problem with FTP
- Posted by jimcbrown (admin) Jan 13, 2010
- 1374 views
you need to have true threading. Euphoria does not currently support true threading (which with today's multi-core CPUs, isn't the best way to code anymore anyway)
This is not true, and has not been true since the release of 4.0 beta3.
In order to run any socket-based routine as a background operation, you need to have true threading. Euphoria does not currently support true threading (which with today's multi-core CPUs, isn't the best way to code anymore anyway), so the only way to do a parallel process is to spawn a separate program. This is one reason a full FTP implementation hasn't been included in eunet yet.
If you wanted a pure Euphoria solution, you could have your ftp routines built as a separate program, probably as a Windows service, and include either a file-based or socket-based inter-process communication API to allow your GUI to give instructions to the FTP process and query its status. Obviously that is a bit more complicated, but parallel programming usually is.
I'm not sure if it is possible to build a service out of an Euphoria program. (You could always write a standard Eu program and install it through something like winserv, of course.)