Jan Kiszka wrote: > [EMAIL PROTECTED] wrote: >> All, >> >> I try to receive DGRAMs with rt_dev_recvfrom: >> >> /* Block until packets arrive */ >> rlen = rt_dev_recvfrom(sock, buffer_in, strlen(buffer_in), 0, (struct >> sockaddr*) &receive_addr, &fromlen); > > Does strlen(buffer_in) produce something > 0 at this point? Looks at > least "unconventional". > > Jan >
Should refrain from copying code blindly! Again and again... Sizeof does the job. Thanks! Bernhard ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users