Forum Discussion
Altera_Forum
Honored Contributor
16 years agoGuys,I am in troubles.
First of all,I cannot get this example working. Basically, I need to build application, similar to FTP. Application, which has two(2) open connections with two ports.Over one of ports, received commands and sent responses. Over second port,I send data.But this is in general. At this stage I want to build application (based on BillA's example), which shall be able to receive packets from other side(PC,for example). When i use BillA's example,and there is connection to external net,i receive the packets,exactly like BillA sad, but it happens not on Transport layer(not by tcp_... functions).I think,it happens on IP leyer(by netif... functions). If i want to receive packets, do i need to define callback functions and why? If YES, how to do it? Somebody can show me on example.I do not need the application,i need a little push,some help. P.S. When i tried to fined the problem, i fount,that in httpd.c file in httpd_init there is some error(maybe it is not an error and it is suppose to be like this,but i think there is an error). In line: pcb = tcp_listen(pcb); tcp_listen function returns NULL and think it is must be different. Thank,you guys!!!!!!!!!!!!!!