[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ports
Sender: Sean Porterfield <sporter@xxxxxxxxxxxx>
Al Klokow wrote:
I've just started using FTP API and am very pleased with it. I have one problem though, I need to connect to port 222 instead of 21. I've changed the constant to 222 for FTP_PORT in the FTPAPI_H copy module but it doesn't seem to make any difference it still wants to use 21. What am I missing?
No need to change the constant. Just use the optional parameter.
* FTP_Conn: Connect and log-in to an FTP server.
*
* peHost = Host name of FTP server
* peUser = user name of FTP server (or "anonymous")
* pePass = Password to use on FTP server (or "user@xxxx
* pePort = (optional) port to connect to. If not suppl
* port "21" (standard FTP port) will be used.
*
* Returns the socket descriptor of the connection upon
* success, or -1 upon error.
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
D FTP_Conn PR 10I 0
D peHost 256A const
D peUser 32A const
D pePass 64A const
D pePort 10I 0 value options(*nopass)
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------