First of all thank you for your time!
--- Quote Start ---
originally posted by cfavreau@Mar 22 2007, 03:11 PM
what exactly is your goal... and what is your problem. if you could be a little more specific with your questioning we may be able to help better. --- Quote End ---
the problem is that the following code doesn't work:
tcp_init();
pcb = tcp_new();
tcp_bind(pcb,&ipaddr, 70);
pcb2=&tcp_listen(pcb)
tcp_accept(pcb2, conectado());
First of all I'm using the STANDALONE lwIP, because I need an easy single threaded code and no OS. At the begining I tried to use MICRO/OS but I couldn't succed.
in the code:
I create a tcp entity, after I blind it, and finally I put it to listen using the function tcp_listen. I expect that in this point the code stops the execution waiting for a remote connection and after executes "conectado" through the "tcp_accept" function.
But, this doesn't work, the code doesn't wait for the remote connection and it is executed until the end.
in my opinion, one step is missing, but i don't know which or where. could you help me or give me a piece of advice such as an example? The main goal is to establish an elemental TCP/IP connection between the nios2 processor, working as server, and a PC, working as client.
Thank you for your time!!
Xavi