Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

uC/OS, LWIP and fdopen

Honored Contributor II

I'm trying to use fdopen to convert an LWIP socket FD to a stream. I get no errors, but It doesn't seem to work... 


   int newFd = accept (sFd, &client, &saddrsize);          if (newFd != ERROR)   {            FILE * tout = fdopen(newFd,"w");      fprintf(tout,"Hello world\r\n");   } 


standard recv/send on the socket works just fine - anyone seen this? 


- Roddy
0 Kudos
0 Replies