Serialize objects

Giganews Newsgroups
Subject: Serialize objects
Posted by:  Hayro A. Zúñiga Gómez (naya…@gmail.com)
Date: Wed, 30 May 2007

Hello,

  An advice, class or whatever object in Indy that give serialization of
objects between tcpserver and tcpclients.

  I could do one, but optimized and well desiged with time I have it's not
my option, so I hope there's something could help me to program faster my
protocols.

  Something like these, it would be great:  (general case)

CASE 1

  rec1= record
    name, apel : string;
  end;

  simpleobj1 = class
    a, b : string;
    c    : integer;
    d:  : boolean;
end;

  obj2 = class
    e : array of simpleobj1;
    f : array of rec1;
end;

var
    o1 : simpleobj1;
    o2 : obj2;

server/client
  sendObj(o1);
  sendObj(o2);

server/client
  receiveObj(o1);
  receiveObj(o2);

CASE 2
I could save a component or object and send it to client/server? (using
stream) Like I save components in Delphi and load them after?

Thanks in advance for your help and more important your time!!!

Replies