Re: FTP client
Pontus Östlund <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAAyMhKxRgbWoXHU4jo2B7dfLTsT3ns=99pbppdbdKqNhdN=P7A@mail.gmail.com> |
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 > >