[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: which? target_->recv(p) or send(pkt,0)
On Sat, 19 Dec 1998, Shuqian Yan wrote:
> 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)?
Yes.
> (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)?
one of the ways is to
let p->dst_ = multicast addr 0x8001
then send(pkt,0)
>
> Anyone knows, pls tell me what is the difference?
Who is your target ? in target_
>
> tks,
>
> shuqian
>