"HI",

you may use pointers in the payload as a metaphor for your data. The
real data is there, so the sender and the receiver can manipulate it.
You might use typed data as objects or bag of bits, using chars.
Anyway, the point here is the *size* of the data payload, which you
must inform correctly to perform a correct simulation. The size is
important because all routing transporting, (...) and packet algoritms
are based on the size of the payload.

Kolija Eger has made a BitTorrent code for NS-2. In this code you'll
see an example of a stack of pointers that he uses to pass real data
in packets.

Sidney Doria
UFCG / BRAZIL

2010/12/15 Akbar Hosseinkhani <akbar.hosseinkh...@gmail.com>:
>
> Dear all,
> I want to write data in packets, and check(read) the data on the way to the
> destination.
> could any one give me an Idea.
> any response would be appreciated.
> AK.
>



--
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)

Reply via email to