Re: FTP client
Pontus Östlund <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAAyMhKzadzhT6f650CWi=tst8P4OPAn7+qq=pwec14c2eQvbcw@mail.gmail.com> |
I almost got it ;) I haven't done very much I/O stuff in my days so give me a pointer here please. Should I replace the current fd with a new one connected to the new port? Or do I need a separate fd? 2015-01-15 16:43 GMT+01:00 Pontus Östlund <[email protected]>: > Ah, but of course. Now I get it! I read about it but didn't fully get it > when I read it. > Back to the keyboard ;) > > # Pontus > > 2015-01-15 16:34 GMT+01:00 Chris Angelico <[email protected]>: > >> On Fri, Jan 16, 2015 at 2:28 AM, Pontus Östlund <[email protected]> >> wrote: >> > 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! >> >> That's where you need a secondary connection. When you enter passive >> mode, the server informs you of an IP and port to connect to, and then >> you need to establish that connection before you send LIST. The file >> listing will come up on that secondary conn. >> >> ChrisA >> >> >