EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Send an integer and a string in the same message

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#3026
Posted: 05/31/2007 02:17:10
by Eva Vallada (Basic support level)
Joined: 05/31/2007
Posts: 2

I want to send an integer and a string into the same message. Is there any example? I saw the SendNote demo but the message is only a string from a edit text. I need to send the length of the string (integer) and the string into the same message.

Thank you
#3027
Posted: 05/31/2007 07:46:38
by Eugene Mayevski (Team)

If you have several data elements, you need to serialize them before sending. For example, you can
serialize the data by writing it to TMemoryStream and then sending the data block behind TMemoryStream.
In complex cases you can use MCDataTree class.


Sincerely yours
Eugene Mayevski
#3030
Posted: 05/31/2007 09:27:29
by Eva Vallada (Basic support level)
Joined: 05/31/2007
Posts: 2

Is there any demo or example using MCDataTree class?

Thank you
#3031
Posted: 05/31/2007 09:33:34
by Eugene Mayevski (Team)

There are no samples available, but for your particular task MCDataTree is an overkill. Just saving the data to a memory stream will be more than enough.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 5790 times

Number of guests: 2, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!