It has been many years since I did much C programming but I Have Been Given the job of adding some capabilities to two existing programs. One is a VB6 program that runs on a PC. The other is a C program running on a picoflash single board computer from JK microsystems. The two computers are connected by an Ethernet link.
Both programs are being developed using the “XP Mode” in Windows 7. The C program is being developed using Borland C++ version 4.52 IDE. It is configured for the 16 bit 80186 instruction set.
The capability that I am working on now is to upload and download files from the Pc to the picoflash single board computer. The action is always initiated at the PC. Data packets are exchanged over the Ethernet link to get the job done. I have done this by sending short packets that I construct passing commands and data back and forth. My problem is that it is too slow. It takes up to six minutes to pass one text file of 600 short lines.
The existing program uses the Wattcp programs developed by Erick Engelke. His manual file contains the statement “For exanple, you can add an FTP server to your applications with just one line of code.” In 1992 he indicated that he doesn’t have time to help people with this and the web site he gave goes to a dating service now.
My code now makes use of the following commands.
Code:
#include <tcp.h>
tcp_tick();
sock_established()
sock_close();
sock_wait_closed();
StartEthernet();
(sock_dataready()
sock_gets
sock_puts();
Can someone point me in the right direction to pass these files quickly?
Jerry