For each operation you want a component to support, you must define a subtype of ostc_ServerOperation that defines a constructor, the members execute() and format(), and optionally the member operationComplete().
class txfer_operation : public ostc_ServerOperation
{
public:
txfer_operation();
~txfer_operation() {}
void execute(ostc_Object * Arguments, ostc_OperationResult*);
void format(
const void*,
ostc_ObjectList*,
ostc_OperationResult*
);
};
You are free to define additional members of the subclass.
Click here for the example in context.