Don't know why you want this, but you could probably do something
along the lines (untested):
void
AddNodeAfterSimulationStarts (Ptr<CsmaChannel> ch)
{
/* initialize a Node n and it's NetDevice nd */
ch->Attach (nd);
}
int main()
{
/* initialize CsmaChannel and CsmaNetDevices */
Simulator::Schedule (Seconds (2.0), &AddNodeAfterSimulationStarts,
csmaChannel);
}
and hope that it will work.
Vedran
2012/6/1 stella <
xing.f...@googlemail.com>:
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To post to this group, send email to
ns-3-...@googlegroups.com.
> To unsubscribe from this group, send email to
ns-3-users+...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/ns-3-users?hl=en.
>