RE: uip_connect 0.9 problem
Berg, RR van den <r.r.van.den.berg <at> st.hanze.nl>
2007-03-01 14:47:47 GMT
Hi,
I had this problem also. Just adjust your code like this:
#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;
}
}
________________________________
Van: owner-uip-users <at> sics.se namens Ghazali, Izrie
Verzonden: do 1-3-2007 14:40
Aan: uip-users <at> sics.se
Onderwerp: [uip-users] uip_connect 0.9 problem
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