SetDispatcher

The SetDispatcher method sets the connection dispatcher function, which is called whenever there is an input on the connection port (input from the socket).

Signature
RiCBoolean RiCOSConnectionPort_SetDispatcher(
   RiCOSConnectionPort *const me, 
   RiCOS_dispatchfunc dispfunc);
Parameters
me

The RiCOSConnectionPort object

dispfunc

The dispatcher function

Returns

The method returns RiCTRUE if successful.

Example
RiCBoolean RiCOSConnectionPort_SetDispatcher(
   RiCOSConnectionPort * const me, 
   RiCOS_dispatchfunc dispfunc)
{
   if (me==NULL) return RiCFALSE;
   me->m_dispatchfunc = dispfunc;
   return RiCTRUE;
}

Feedback