That means there is no route from the client to the host. How are you
configuring the netif?
Kieran
_______________________________________________
lwip-users mailing list
lwip-...@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lwip-users
What does this function do?
Hi Kieran,netif = netif_ethernet_open(LWIP_1) - this function opens the Ethernet connection on my FPGA board which is called Altium Nanoboard 3000.Also this function uses the TCP/IP Networking context whose ID is LWIP_1 this is set in my Software Platform of my project. I am enclosing a screen shot of how I configured this Software platform for my project.Regards,Greek
Could you show us the source for that function?
You said earlier that you were getting an ERR_RTE when trying to
connect. Are you now saying that you don't get this error when trying
to connect and tcp_connect is returning ERR_OK? If you're still seeing
a routing error at connection time it would be useful to see the source
to your netif_ethernet_open() function
> But the problem arises with writing to the server with this block
>
>
> static err_t client_connected(void *arg, struct tcp_pcb *pcb, err_t
> err)
> {
> char string[] = "Hello!";
> LWIP_UNUSED_ARG(arg);
>
>
> if(err != ERR_OK)
> printf("\n client connected(): err argument not set to ERR_OK, but
> the value is %d\n", err);
> else
> {
> printf("\n client connected \n");
> tcp_sent(pcb, client_sent);
> tcp_write(pcb, string, sizeof(string), 0);
> }
> return err;
> }
>
>
> where I have asked the client to sending the string "Hello!" to the
> server. If it is sending to the server how can i find out that it is
> sending the data.
Look at the return value of tcp_write() and wait for your client_sent
function to be called.
Also if you want data to be sent now, call tcp_output() to try to send
after calling tcp_write().