On Thu, Jul 22, 2010 at 2:43 AM, Jan Kiszka <[email protected]> wrote: > Leandro Favarin wrote: >> I'm sorry for posting twice but I think that my problem became easier >> to solve, because now I'm trying to convert both "linux_client.c" and >> "linux_server.c" (located in /rtnet-0.9.12/examples/generic/) and it's >> returning the same error: recvfrom(): Success >> >> I simply changed socket() to rt_dev_socket(), bind() to rt_dev_bind(), >> sendto() to rt_dev_sendto(), recvfrom() to rt_dev_recvfrom() etc >> beyond adding "#include <rtdm/rtdm.h>" to the source files. >> >> What I'm doing wrong? > > What I already explained: You are lacking RT-task context for receive, > and the error code is returned directly. > > Jan > Hi Jan, Thanks for being patient with me and my problem. I really appreciate! Using RT_TASK context it worked flawlessly.
Thank you! Leandro Favarin ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ RTnet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-users

