[Gambas-user] How capture exit from FtpClient?

Jorge Carrión shordi at ...626...
Wed Feb 27 22:11:13 CET 2013


Thank you Tobi. Working on it...



2013/2/27 Tobias Boege <taboege at ...626...>

> On Mon, 25 Feb 2013, Jorge Carri?n wrote:
> > Tobi,
> > If your code is on Gambas, I can try manage with it. I'm not a C
> > programmer... by the way: Is ftpClient written in Gambas?
> >
> > Regards
>
> The project I used to test my class is attached. Note that
> a) it is highly experimental and possibly buggy code (where 'buggy' means:
>    bugs beyond those annotated in the sources);
> b) the sources are _really_ bad;
> c) it's not event-driven;
> d) the program sometimes fails to startup when the Ctrl_Read() event
> handler
>    which uses Read instead of Line Input is used (that's at least what I
>    observed);
> e) I didn't even look at the RFC;
> f) my class does not try to mimic gb.net.curl's interface.
>
> If I hadn't said that I would send it today, I would have hidden the
> sources
> in the dark because they're just as ugly as could be.
>
> It may not be useful at all to you as it is now. But that's how I would
> go about implementing an FtpClient. If Exec() and ExecPassive() _worked_
> correctly, the rest could be wrapped around them.
>
> Benoit, in case you listen: there's a comment for you in FtpClient.class
> about Line Input vs. Read. It seems to me that Line Input does not raise
> enough events which means: there must be some data still in the internal
> buffer but no Read event is raised until some _new_ data arrives.
>
> There were problems with Line Input before, right?. Tested with rev5566.
>
> Regards,
> Tobi
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>



More information about the User mailing list