[Geneticd-devel] Added quantitative serialization
Status: Alpha
Brought to you by:
jonnymind
|
From: Jonny M. <jon...@ni...> - 2001-12-15 14:48:03
|
Now every serializable object (the tree below GeneticEngine) has a new method
called serial_size() that forecasts exactly the amount of space needed to
store the engine, or the component. This data is displayed between double
quotes (") in the response line of the "save" and "sage" comands; in this
way, clients can know how many bytes will be recieved. Clients are also
advised that the serialized stream via tcp/ip connection still terminates
with <CR><LF>.<CR><LF>
This terminator is a part of the protocol; clients will have to read and
discards 5 characters more than the data lenght inidicated in the response
line.
|