Smart CODE | |
Your on-line guide to the generated code |
This Internet Data object is processed automatically by Thin-Client smart code - it contains private code to load the data and deserialize it and update the contents of the group data object. This sequence is detailed in the section on the generated client-server callout/method
Where the MIME type of the incoming data does not correspond with the expected Thin-Client private MIME type, (or where the user has provided an alternative Recieve handler), the data is passed to stub routines for processing. Generated stubs do contain commented examples of how to access the data InputStream and how to load/process the data.
Internet connection and stream handling in C and C++ is handled using classes/objects that work to the same API as the java.net and java.io URL URLConnection, InputStream OutputStream etc classes. This is to provide a common API that allows code written with one toolkit/language to migrate easily to another - or for alternative thin-client implementations to work in exactly the same way.
The data structures below define the Internet Data interface. They are abstract, as the data objects that are passed into the handler routines are implementations of the interface for a particular transport mechanism (here HTTP).
x-application/sc-GROUPNAME
which is used both by the client and by the server to ensure the integrity of the
connection.
If you are providing your own processing routine you may wish to provide alternative processing mechanisms for different incoming MIME types.