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

uC/OS, LWIP and fdopen

Altera_Forum
Honored Contributor II
983 Views

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
Reply