HI there, I've ported uip 0.9 to LPC-E2124 board by olimex. I found no problem with webserver demo provided in the package. However, when I try to make a simple uip_connect program that connect to a listening server, which I developed using Java eclipse, it turned out to be the listening server output an error message of "connection reset". I have confirmed that there is no problem with the java server. I suspect the problem arose due to uip_checksum or uip_connect(??). The code is as follows:
#include "report.h" #include "uip.h" void report_init(void) { u16_t ipaddr[2]; uip_ipaddr(ipaddr, 192,168,1,68); uip_connect(ipaddr, HTONS(1234)); } void report_app(void) { if (uip_connected() || uip_rexmit()) { uip_send("hi/n",3); return; } } The problem arose as soon as I call the function report_init(). Don't even have the chance to test the report_app(). Any body could help with this? -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 28/02/2007 4:09 PM