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