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
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?