model_server/driver_aset/src/main.cxx
//------------------------------------------
// driver_client_hook
//
// This function gets called whenever there is a client XEvent.
// This is used for getting communique from epoch
//------------------------------------------
driver_client_hook
This function gets called whenever there is a client XEvent.
This is used for getting communique from epoch
driver_client_hook This function gets called whenever there is a client XEvent . This is used for getting communique from epoch
void driver_client_hook( XEvent *event )
{
    if ( !event->xclient.window ) {
        if (event->xclient.data.b[0] == 1) {
            msg ("invalid call to ste_send_shell_command", catastrophe_sev) << eom;
            exit(1);
        }
        else
            switch (event->xclient.format) 
            {
              case 16 :
              case 8  :          
              case 32 :
                default :
                {
                int a1 = (int) event->xclient.data.l[0];
                int a2 = (int) event->xclient.data.l[1];
                int a3 = (int) event->xclient.data.l[2];
                int a4 = (int) event->xclient.data.l[3];
                int a5 = (int) event->xclient.data.l[4];
                ste_epoch(a1, a2, a3, a4, a5);
                }
                break;
            }
    } else
        pset_dispatch_own_callback (event);
}
void driver_client_hook ( XEvent * event ) { if ( ! event -> xclient . window ) { if ( event -> xclient . data . b [ 0 ] == 1 ) { msg ( " " , catastrophe_sev ) << eom ; exit ( 1 ) ; } else switch ( event -> xclient . format ) { case 16 : case 8 : case 32 : default : { int a1 = ( int ) event -> xclient . data . l [ 0 ] ; int a2 = ( int ) event -> xclient . data . l [ 1 ] ; int a3 = ( int ) event -> xclient . data . l [ 2 ] ; int a4 = ( int ) event -> xclient . data . l [ 3 ] ; int a5 = ( int ) event -> xclient . data . l [ 4 ] ; ste_epoch ( a1 , a2 , a3 , a4 , a5 ) ; } break ; } } else pset_dispatch_own_callback ( event ) ; }
driver_client_hook
This function gets called whenever there is a client XEvent.
driver_client_hook This function gets called whenever there is a client XEvent .
// is used for 19 bytes command //ste_send_shell_command(0, &event->xclient.data.b[1]);