srinivas poram
2012-10-30 10:29:37 UTC
Hi,
I want to send my custom packet like hello among the simulated nodes. for
this i have created a packet like below
Ptr<Packet>pkt=Create<Packet>(reinterpret_cast<uint8_t *>("hello"),5);
i can able to check the payload by
cout<<*pkt<<endl; and contents of the packet by
cout<<pkt->PeekData()<<endl;
I came to know that i can able to send these packets among simulated nodes
by using sockets.So i created socket by
Ptr<Socket>socket;
why is it giving error when i use
socket->Bind(InetSocketAddress(80));
and error is being displayed when i'm using udpFactory if i want to create
a socket as below
Ptr<Socket>socket=udpFactory->CreateSocket();
any help ..please
I want to send my custom packet like hello among the simulated nodes. for
this i have created a packet like below
Ptr<Packet>pkt=Create<Packet>(reinterpret_cast<uint8_t *>("hello"),5);
i can able to check the payload by
cout<<*pkt<<endl; and contents of the packet by
cout<<pkt->PeekData()<<endl;
I came to know that i can able to send these packets among simulated nodes
by using sockets.So i created socket by
Ptr<Socket>socket;
why is it giving error when i use
socket->Bind(InetSocketAddress(80));
and error is being displayed when i'm using udpFactory if i want to create
a socket as below
Ptr<Socket>socket=udpFactory->CreateSocket();
any help ..please
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/tGQdVp5BjB4J.
To post to this group, send email to ns-3-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to ns-3-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/tGQdVp5BjB4J.
To post to this group, send email to ns-3-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to ns-3-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.