1. FTP functions - Tanks to Michael J. Sabal

Many thanks to Michael J. Sabal for help.

The file FTP STUB placed as "contribution of users" is with the function "get_remote_dir" running smoothly.

As I reported in previous topics, the libraries that are on the site euphoria, are not functioning fully. Especially the function that lists files and folders from one directory

All people can to see as the "FTP" is important for developers, just see the huge number of hits to the previous threads on "FTP". I leave here my vote for the functions "FTP", are part of the Euphoria 4

new topic     » topic index » view message » categorize

2. Re: FTP functions - Tanks to Michael J. Sabal

I don't think that the wininet wrapper isn't functioning correctly. It's just that you have to use the correct settings when making your connections and sending commands, and you can't necessarily use the exact same settings that were used in the examples. For example, 19FTPCommand.exw seemed to use active ftp semantics by default, while Michael's ftp stub seems to use passive ftp semantics which you usually have to do if you're behind a firewall.

As for having basic ftp functionality in the standard library.. sure, sounds like a good idea.

new topic     » goto parent     » topic index » view message » categorize

3. Re: FTP functions - Tanks to Michael J. Sabal

Are these functions written based on the 4.0 sockets or a wininet wrapping? If a wininet wrapping, then we cannot put them in the 4.0. Anything that goes into 4.0 has to be 100% cross platform. The socket interface in 4.0 is 100% cross platform, so anything built on it should automatically get cross-platform capabilities.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

4. Re: FTP functions - Tanks to Michael J. Sabal

jeremy said...

Are these functions written based on the 4.0 sockets or a wininet wrapping? If a wininet wrapping, then we cannot put them in the 4.0. Jeremy

Hi Jeremy,

Mic Sabal put the comment below, in your file, "EUNET.E"


- EuNet.e is a series of cross-platform networking routines using - Native function calls.


Also try found, but nothing points to the file "wininet.dll, in library "EUNET.E". So I think you should take a look at that "EUNET" library, then decide if you can put in 4.0

Sergio Gelli

new topic     » goto parent     » topic index » view message » categorize

5. Re: FTP functions - Tanks to Michael J. Sabal

sergelli said...

Also try found, but nothing points to the file "wininet.dll, in library "EUNET.E". So I think you should take a look at that "EUNET" library, then decide if you can put in 4.0

Ok, so it is a part of EuNet. EuNet was originally put into 4.0, however, the socket routines from EuNet were then ported from Euphoria code into direct C code in the backend. So, eunet is somewhat in Euphoria already. When this porting took place, all the code was rewritten.

So, eunet itself will not go into 4.0, as 4.0 has faster socket routines now than what eunet can provide. However, items such as ftp.e, that uses eunet socket routines can easily be migrated to use the internal socket routines of Euphoria instead of depending on eunet, thus, it becomes cross platform across all platforms Euphoria supports and it gains from having backend socket functions.

Do you use 4.0 or 3.1? Maybe you can work on changing from eunet socket calls to those of include std/socket.e ? Since eunet is a popular library (and it conformed to a standard), I tried my best to keep the functions the same. However, there are some minor changes to naming and parameters in various places to keep with 4.0 naming conventions as well as being able to make better use of default parameters, but the conversion still, shouldn't be hard at all.

Greg was also going to look into making ftp.e base off of 4.0 sockets. Greg, is that something you were still going to look into?

Jeremy

new topic     » goto parent     » topic index » view message » categorize

6. Re: FTP functions - Tanks to Michael J. Sabal

jeremy said...

Greg was also going to look into making ftp.e base off of 4.0 sockets. Greg, is that something you were still going to look into?

Absolutely. I am pursuing a socket-based solution. (I've done this before and I can't, for the life of me, find my old work.) I'll see what I can knock out this week. Available time, as always, is my a limiting factor...

-Greg

new topic     » goto parent     » topic index » view message » categorize

7. Re: FTP functions - Tanks to Michael J. Sabal

jeremy said...

1-Do you use 4.0 or 3.1?

2- Maybe you can work on changing from eunet socket calls to those of include std/socket.e ?

3-Greg was also going to look into making ftp.e base off of 4.0 sockets. Greg, is that something you were still going to look into?

Jeremy

1- No, now I'm using 3.1 -I am moving to 4.0 soon 2- I have no knowledge to this. Is wonderful the work you do with Euphoria 3- Grateful to Greg. Perhaps, Greg has already seen the "FTP stub" - the new work of Michael J. Sabal


Could you please,tell me where can I learn about "sockets"

Sergio Gelli

new topic     » goto parent     » topic index » view message » categorize

8. Re: FTP functions - Tanks to Michael J. Sabal

sergelli said...

Could you please,tell me where can I learn about "sockets"

Sergio Gelli

Sergio,

You can learn about sockets and the networking routines in 4.0 (FTP hopefully added soon!) in the manual:

Networking Routines

Jeremy

new topic     » goto parent     » topic index » view message » categorize

9. Re: FTP functions - Tanks to Michael J. Sabal

sergelli said...

1- No, now I'm using 3.1 -I am moving to 4.0 soon

2- I have no knowledge to this. Is wonderful the work you do with Euphoria

3- Grateful to Greg. Perhaps, Greg has already seen the "FTP stub" - the new work of Michael J. Sabal

Any FTP library I write will be purely 4.0. Yes, I've seen the "FTP stub" and I'm using it as a reference since I seem to have misplaced my own work on the matter.

-Greg

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu