commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hermann.Pr...@f-it.de
Subject AW: Commons-Net
Date Tue, 01 Jun 2004 13:54:03 GMT
Hi Ashish,

simply use one of the FTP-Clients' connect() methods (inherited from the
SocketClient class) that allow to specify a specific port.

void	connect(InetAddress host, int port) 
void	connect(InetAddress host, int port, InetAddress localAddr, int
localPort) 
void	connect(String hostname, int port) 
void	connect(String hostname, int port, InetAddress localAddr, int
localPort) 

Hope that helps.

Hermann Prüm


-----Ursprüngliche Nachricht-----
Von: Ashish Naik [mailto:ashishn@mahindrabt.com]
Gesendet: Dienstag, 1. Juni 2004 15:42
An: commons-user@jakarta.apache.org
Betreff: Commons-Net



Hi,

I am trying to use FTPClient class to perform ftp operations. I dont know
how to specify specific port in Connect method.

Can someone point out?

Cheers,
Ashish Naik


*********************************************************
Disclaimer:          

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message