Hi Kieran,thanks for your reply :-)
This is how I am configuring netif
struct netif netif;
void lwip_setup(void){    sys_sem_t init_sem;    struct netif *netif;
    printf("Starting lwIP\n");
    // init tcpip thread and wait for it to finish booting.    init_sem = 
sys_sem_new(0);
    tcpip_init(tcpip_init_done, init_sem);
    sys_sem_wait(init_sem);    sys_sem_free(init_sem);
    netif = netif_ethernet_open(LWIP_1);
    netif_set_default(netif);
}
I think this part is fine, only I could not able to connect to the server. Feel 
free to ask any information you want.
Thanks and Regards,Greek
> Subject: Re: [lwip-users] Checking whether the client is connected to the     
> Server
> From: [email protected]
> To: [email protected]
> Date: Fri, 27 Aug 2010 13:18:03 +0100
> 
> On Fri, 2010-08-27 at 11:56 +0000, Teckinal Greek wrote:
> > Before that I wanted to check the connection whether it is connected
> > or not, so what i did is i assigned a variable "err" and when I try to
> > print it out on the terminal instrument and see the value it gives a
> > value of "-4". 
> 
> That means there is no route from the client to the host.  How are you
> configuring the netif?
> 
> Kieran
> 
> 
> _______________________________________________
> lwip-users mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/lwip-users
                                          
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to