Re: FTP client
Pontus Östlund <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAAyMhKz=CmrVQt6DCPcsGfNnHk-MiiTHMbLVXZON_S9956CX1g@mail.gmail.com> |
Well, I've actually started on one already based off of how the SMTP client is implemented. So my FTP class inherits Protocols.NNTP which inherits Stdio.FILE and I've then overridden some of the methods in NNTP in my FTP class. I have no problems connecting to the server, change working directory, entering passive mode and such. The problem starts when I try to issue a LIST command. Nothing happens and the read-loop hangs until the server closes the connection. And I don't know why that is! 2015-01-15 15:44 GMT+01:00 Chris Angelico <[email protected]>: > On Fri, Jan 16, 2015 at 1:10 AM, Pontus Östlund <[email protected]> > wrote: > > Hello Pike List! > > > > I was wondering if there's any built-in FTP client in Pike. I sure can't > > find one. Does anyone have one laying around to spare, or some pointers > to > > an easy way to implement one? > > I don't know of one in the standard library, and I don't have actual > code lying around, but it's not a terribly complicated protocol; you > could probably build it on top of basic Stdio.File sockets in under an > hour, especially if your needs are fairly simple. I'd be happy to help > out if you need a hand. > > ChrisA > >