CPAINT v2 Examples & Demo Applications
Source code to these examples and a few more are included in the CPAINT v2.x download.
this is the most straight-forward CPAINT demo application and the one you should start examining in the beginning.
just enter something into the formfield and press the submit-button, the application will reply.
- proxy ping
identical in functionality to the previous example, this one demonstrates the ability of CPAINT to perform requests to a CPAINT backend on remote servers using the proxy script.
- querying Google
by querying google we demonstrate that CPAINT can very easily be used to talk to remote, non-CPAINT services.
- encoding test
CPAINT is able to work with arbitrary charsets. UTF-8 is considered the default but the variety of ISO-8859-x character sets work just as well as Big5 or EUC-JP.
This test ensures this.
- concurrency test
Makes sure CPAINT does handle multiple open requests correctly.
- persistence test
Demonstrates the use and the tradeoffs of a persistent connection.
- responsetype test
Demonstrates the usage of all available response types.
- type conversion test
Demonstrates the variable type conversion of CPAINT.
- object calling test
Demonstrates the call of object members and static class functions.
- complex parameters
Since v2.0.2 CPAINT supports the passing of arrays and objects to the backend. this test verifies that.
Another simple test using CPAINT as calculator.
- a simple chatting system
although the application is considered simple, it is the most complex CPAINT example. Use multiple browsers to check this one out.
although an impressive application, the CPAINT-related code is quite simple. Have fun with this one.
- smiley generator
remotely based on the colorpicker from above, the smiley generator lets you generate your own, customized smileys. You can chose a smiley icon and a short message along with various colors.
The smiley generator will then generate a .gif with the smiley and a sign bearing your own personal message.