lwip_socket and tcp_new

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

lwip_socket and tcp_new

Shivaraj M S
Hi all
        I have used lwip stack to create a tcp connection on a simulator.
On the simulator I tried using tcp_new which connects to a url.
The problem is I have a requirement to open the socket
as in
sock = socket(PF_INET,SOCK_STREAM,0);
file = fdopen(sock,"r");

I have used lwip stack to call tcp_new for a new tcp connection.
(lwip_socket not used as it contacts system/kernel for memory settings)

But tcp_new returns a tcp_pcb which doesn't have a file descriptor in it.
Is the requirement feasible?
If yes how?


Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

lwip-users mailing list
[hidden email]