Hi Stefan,
>> I guess they will be net::Object but without having read the
>> documentation I'm not really sure.
> 
> You'll need the net::NodeID to which you want to send the packet. If  
> you're using Objects, the object knows its session (when mapped),  
> which knows its local node, whose NodeID you can send to another node.  
> The local (listening) node on the other side can connect to the other  
> node using net::Node::connect( NodeID ). Then you simply send from the  
> remote node using Object::send( node, ObjectPacket ). The net::Barrier  
> code gives a nice example for this.
I've been ready through the code and I think I pretty much get the idea. 
  My problem is that I've become stuck in the initialization of the 
identifiers I need.
I've defined a ditributed object and I have a packet that will pass the 
object ID and version to tell the other nodes what object has to be 
mapped and when they have to synchronize. What I don't know is how to 
send the packet to the other nodes. I could add the object ID in the 
initialization data (as in InitData from eqPly) and then I don't need to 
send the packet, but that adds a nasty dependency between several 
objects that I want to avoid.
So, is there an easy way of getting the NodeID or NodePtr references for 
all nodes in the configuration from the eq::Config, eq::Node or similar 
within the application node? If it's not that straightforward, it there, 
at least, a way to broadcast a packet?
Thanks

Best regards,
Juan

_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to