Asian Application Developer's Guide

XIM Protocol Interface

The current XIMP in Solaris software supports the following key event handling solutions:

Front-End IM Server Type1: XIMP_FE_TYPE1

All key events go through the IM server only when input conversion mode is ON to compose text.

The Conversion ON key is recognized in the IM library.

The Conversion OFF key is recognized in the IM server.

Figure 5-4 Event Flow in XIMP_FE_TYPE1

Graphic

Back-End IM Server Type2: XIMP_BE_TYPE2

All key events are sent first to the IM library and then to the IM server. The IM server is responsible for sending unused key events back to the IM library.

The Conversion ON/OFF key is recognized in IM server.

Figure 5-5 Event flow in XIMP_BE_TYPE2

Graphic

For XIMP_SYNC_BE_TYPE2, extra synchronization is done on XIMP_KEYPRESS.