Writing the code for your PODS' main application functionality

All the topics covered so far in this chapter involve setting up the infrastructure for your POD; the goal of this section is to provide some guidance in putting together the code for the heart of a POD, the main functionality for which the POD is being created to support.

Note

In writing the code to implement your POD, be sure that you allocate any vtable s with calloc. Alternatively, you may allocate vtable s with malloc and then memset them to zero. Failure to do so may leave unassigned vtable entries undefined. This can cause unpredictable behavior.


Vending documents: displaying HTML pages
Vending objects: exporting your POD to JavaScript
Naming your PODS objects
Creating multiple PODS for a single domain