[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

which? target_->recv(p) or send(pkt,0)



Hello, all

What is the difference between the above two methods? and when should I
use one and not the other one? 

(1) if I have two agents connected (being attached to different node
object), and one agent is sending pkts to the other, should I use
send(pkt,0)?
(2) if I have a agent (being attached to a node object) and this agent is
sending to a multicast group address, should I use target_->recv(p)?

Anyone knows, pls tell me what is the difference?

tks, 

shuqian