Since in IIIMF, each entity communicates with each other via any sorts of network with IIIM Protocol, IIIMCF must naturally deal with abrupt connection shutdown.
Whenever IIIMCF detects abnormal connection shutdown, it immediately resets all
context of the shutdown handle except conversion mode, and broadcast a
IIIMCF_EVENT_TYPE_RESET
event to all of the components that
the handle has. Every component that receives this event should reset its all
internal states related to the context except for auxiliary state, and also
notifies that all states visible from users have been changed. Note
that any auxiliary states (controlled by IM_AUX_DRAW) are sustained because such
auxiliary objects have their own initial state that IIIMCF does not know.
Then if the user requests to that context, IIIMCF automatically restore it by requesting the server to recreate it. At this stage, the conversion mode is restored as well, thus we can virtually regard that the conversion mode is persistent even after the shutdown. Therefore the IIIMCF library user does not need to take care of connection shutdown.