Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

uC/OS, LWIP and fdopen

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
No RepliesBe the first to reply