Hi All,<div><br></div><div>Is there a good way to handle Socket timeouts when transferring files to a server?</div><div><br></div><div>ftp _ FTPClient openOnHostNamed: remoteHost.</div><div>....some code</div><div>ftp putFileNamed: &#39;something; as: &#39;something&#39;.  &lt;---error when connecting to remoteHost </div>
<div><br></div><div><div>Socket&gt;&gt;connectTo: hostAddress port: port waitForConnectionFor: timeout </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&quot;Initiate a connection to the given port at the given host </div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>address. Waits until the connection is established or time outs.&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>self connectNonBlockingTo: hostAddress port: port.</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>self</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>waitForConnectionFor: timeout</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifTimedOut: [ConnectionTimedOut signal: &#39;Cannot connect to &#39;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>, (NetNameResolver stringFromAddress: hostAddress) , &#39;:&#39; , port asString]</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>
Ching</div></div>