Am 14.09.2010 09:20, Michel He wrote: > Yes I started the program on _both_ nodes by specifying the other node > as destination, as follow : > > /* bind the rt-socket to a port */ > local_addr.sin_addr.s_addr = INADDR_ANY; > > /* set destination address */ > dest_addr.sin_addr = dest_ip; >
So you modified the demo source code? The details are still unclear to me, and as the effect you described is quite weird, something must be different in your setup. > > Btw, I'd like to know the difference between: > rt_dev_socket(AF_INET,SOCK_DGRAM,0); > and > rt_dev_socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP); > > Why: 0 and IPPROTO_UDP ? > 0 means "pick the default" - which is UDP for SOCK_DGRAM. So the lines have the same effect. Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users