The SetDispatcher method
sets the connection dispatcher function, which is called whenever
there is an input on the connection port (input from the socket).
SignatureRiCBoolean RiCOSConnectionPort_SetDispatcher(
RiCOSConnectionPort *const me,
RiCOS_dispatchfunc dispfunc);
Parametersme
The RiCOSConnectionPort object
dispfunc
The dispatcher function
ReturnsThe
method returns RiCTRUE if successful.
ExampleRiCBoolean RiCOSConnectionPort_SetDispatcher(
RiCOSConnectionPort * const me,
RiCOS_dispatchfunc dispfunc)
{
if (me==NULL) return RiCFALSE;
me->m_dispatchfunc = dispfunc;
return RiCTRUE;
}