How to make a socket wait for a conection from a server

2003-08-21 Thread Alexandre Barreto
I'm making a ftp program i saw some exemples of netlib and everthing is going fine untill i got to the datasocket i need to make it listen...so the ftp server can conect on it. after a i send a PORT command but when i call NetLibSocketListen i get a -1 and errP says the erro is netErrParamErr

Re: How to make a socket wait for a conection from a server

2003-08-21 Thread Brad Figler
You listen if you are the server. You connect if you are the client. I think that you want to connect to an FTP server to initiate connection. Not wait for someone to connect to you. Alexandre Barreto wrote: I'm making a ftp program i saw some exemples of netlib and everthing is going fine

Re: How to make a socket wait for a conection from a server

2003-08-21 Thread Brian Smith
On Thu, 21 Aug 2003, Brad Figler wrote: You listen if you are the server. You connect if you are the client. I think that you want to connect to an FTP server to initiate connection. Not wait for someone to connect to you. He's talking about the data connection, which the FTP server