Save data into descriptor and read it out

Login to reply to this topic.
Mon, 2008-08-18 15:05
Joined: 2007-10-19
Forum posts: 2

Hi all,

im trying to send some data via WLAN. Im using UDP for that and i want to send some data like Integer and TReal64 values!
How can i put it into the sending descriptor and read it out at another device?
For Integer i know the TLex API, but i have problems with TReal64!

Is the right way to use ExternalizeL and InternalizeL?
What are the basic steps to do that?

Thanks in advance

Dejan


Tue, 2008-08-19 07:17
Joined: 2008-06-23
Forum posts: 85
Re: Save data into descriptor and read it out

On the sender side you can use an RDesWriteStream to assemble the packet to send, while on the receiver side RDesReadStream would be suitable to split up the incoming data. These classes have read-from/write-into functions for different types, e.g. for TReal64 as well.

  • Login to reply to this topic.