At 12:27 PM 7/29/2005, you wrote:
Hi,

I have the sources LFTP program (LFTP 1.61)

I'm using CW9 and NetLib to develop application that sends/receives files to and from FTP server. The problem is in the NetLibSend. To send small files up to 30 kbytes I do not have problems, however how much necessary to send large files, 30 kbytes or more the NetLibSend returns error. I observed several commentaries in this same forum with problems in this same function, already I tried the found tips, for example, many people speak that the chunck sent for the server has that to be small 512 bytes and also to reduce the speed of the connection, but don“t solve the problem.

Somebody has the solution for this problem?

Are you using an "int" to hold your position in the data to send? If so, you may be hitting the 16-bit limit for int variables which can represent -32K to +32K. Try using a long instead to keep track of offset values. This also applies to pointer arithmetic and array offsets.

-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to