[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pandora] how access ipp._data.data once is pushed?
From: |
Simon Patarin |
Subject: |
Re: [Pandora] how access ipp._data.data once is pushed? |
Date: |
Wed, 5 Mar 2003 15:10:49 +0100 (CET) |
> When an ip packet is created it's headers are hidden to users of IPPacket
> class (by calling _data.move())
>
> later when a TCPPacket is build the the contents are _data.move()'d again...
>
> I don't see a public interface wich allows getting char *_data.data
> pointer from a component wich is on top of TCP
>
> ...is there already a way to do that?
If you want to reset the read offset of the _data field, you may want to
use its 'go' public method.
>From libpandora/packetdata.h:
void packetData::go(const size_t s)
{
pandora_assert(s < length);
read_offset = s;
}
So a complete reset would look like _data.go(0).
Simon