You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by co...@jakarta.apache.org on 2004/09/09 20:26:14 UTC

[Jakarta Commons Wiki] Updated: Net/FrequentlyAskedQuestions

   Date: 2004-09-09T11:26:14
   Editor: RoryWinston <rw...@eircom.net>
   Wiki: Jakarta Commons Wiki
   Page: Net/FrequentlyAskedQuestions
   URL: http://wiki.apache.org/jakarta-commons/Net/FrequentlyAskedQuestions

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -14,22 +14,22 @@
 '''Q: How do I get passive mode correctly started?'''
 
 '''A:''' Passive mode has to be established each time you connect to an FTP server.
-After you connect to a server with <code>FTPClient.connect()</code>, you can call
-<code>FTPClient.enterLocalPassiveMode()</code> to enable passive mode.  From then
+After you connect to a server with {{{FTPClient.connect()}}}, you can call
+{{{FTPClient.enterLocalPassiveMode()}}} to enable passive mode.  From then
 on, FTPClient will take care of issuing a PASV command each time it opens a data 
 connection until you change the data connection mode by calling
-<code>enterLocalActiveMode()</code> or you close the connection.  If you call 
-<code>enterLocalPassiveMode</code> before connecting to a server, the data
+{{{enterLocalActiveMode()}}} or you close the connection.  If you call 
+{{{enterLocalPassiveMode}}} before connecting to a server, the data
 connection mode will be reset to the default active mode upon initial connection
 establishment.  If you always want to use passive mode and don't want to call 
-<code>enterLocalPassiveMode</code> all the time, you can subclass FTPClient and override 
-<code>_connectAction_()</code> like so:
-<pre>
+{{{enterLocalPassiveMode}}} all the time, you can subclass FTPClient and override 
+{{{_connectAction_()}}} like so:
+{{{
 protected void _connectAction_() throws IOException {
   super._connectAction_();
   enterLocalPassiveMode();
 }
-</pre>
+}}}
 ----
 '''Q: Using the NNTPClient, retrieving a list of headers takes forever. Why is that?'''
 

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