cpaint Method Summary
cpaint Property Summary
void set_persistent_connection ( boolean persistance )
Defines whether or not to use a persistent connection.
» boolean persistancewhether or not a single persistent connection is to be used
» Access: public
When set to true, a single persistent connection object will be used by CPAINT.
With a persistent connection in use, CPAINT will drop all issued requests until the last response has returned. Yes, you will loose request / response pairs if a request is being issued before the preceding one has returned.
The benefit of a persistent connection is to save bandwidth and memory. A persistent connection is most useful if one and the same request is performed in regular intervals so it is unimportant whether or not a single update is dropped.