#include <SFBReactor.h>
Public Member Functions | |
void | reflex (const char type, PacketHandler ph) |
A convenience method to specify that packets of the given 'type' should trigger the PacketHandler 'ph' if and when they reach the spine. |
A call like:
Spine.reflex('z',myZSpineHandler);
is entirely equivalent to the call:
reflex('z',myZSpineHandler, SFBReactor::TRIGGER_SPINE);
void SFBSpineReflex::reflex | ( | const char | type, | |
PacketHandler | ph | |||
) | [inline] |
A convenience method to specify that packets of the given 'type' should trigger the PacketHandler 'ph' if and when they reach the spine.
type | The type to associate, corresponding to the first byte of a packet that can trigger this reflex. | |
ph | The handler to call when a 'type' packet reaches the spine. |