[okl4-developer] About Iguana client session.

유호철 hcyoo at cuwave.co.kr
Tue May 20 15:14:15 EST 2008


Hi !

 I want to use [ iguana_client.h ] header function. 

 With my knowing it, first step is established session. 

 In case other client header. for example [ ism_client.h ] write following
as

 -----------------------------------------------------------------------

static
void setup_ism_lib(void)
{
        void* stdout_p;
        void* stdin_p;
        stdout_p = (void*) iguana_getenv (IGUANA_GETENV_ISM_SERVER);
        stdin_p = (void*) iguana_getenv (IGUANA_GETENV_ISM_SERVER);
        ism_out = stdout_p;
        ism_in = stdin_p;
}


static
void check_ism(void){
       if (ism_output == NULL) {
                static object_t obj_interface;
                session_ref_t session;
                thread_ref_t serv_ref;
                uintptr_t ignore;
                memsection_ref_t memsection;
                ism_output = &obj_interface;
                obj_interface.obj = (objref_t) ism_in;
                memsection = memsection_lookup(obj_interface.obj,
&serv_ref);
                obj_interface.server = thread_l4tid(serv_ref);
                session = iguana_pd_create_session(L4_Pager(),
                                         pd_myself(), thread_myself(),
serv_ref,
                                        
memsection_lookup((uintptr_t)iguana_get_clist(0), &ignore),
                                         NULL).ref.session;
                assert(session != 0);
        }
}

-----------------------------------------------------------------------------------------

So, I try to write same format at Igana_seesion.  Follow as. 

-----------------------------------------------------------------------------------------

static
void setup_ig_lib(void)
{
        void* stdout_p;
        void* stdin_p;
        stdout_p = (void*) iguana_getenv(IGUANA_GETENV_IGUANA_SERVER);
        stdin_p = (void*) iguana_getenv(IGUANA_GETENV_IGUANA_SERVER);
        ig_out = stdout_p;
        ig_in = stdin_p;
}

static
void check_iguana(void){
       if (ig_output == NULL) {
                static object_t obj_interface;
                session_ref_t session;
                thread_ref_t serv_ref;
                uintptr_t ignore;
                memsection_ref_t memsection;
                ism_output = &obj_interface;
                obj_interface.obj = (objref_t) ig_in;
                memsection = memsection_lookup(obj_interface.obj,
&serv_ref);
                obj_interface.server = thread_l4tid(serv_ref);
                session = iguana_pd_create_session(L4_Pager(),
                                         pd_myself(), thread_myself(),
serv_ref,
                                        
memsection_lookup((uintptr_t)iguana_get_clist(0), &ignore),
                                         NULL).ref.session;
                assert(session != 0);
        }
}

------------------------------------------------------------------------------------------

But,  IGUANA_GETENV_IGUANA_SERVER of setup_ig_lib() section is not exist. 

Is a way different from a case of iguana_session and  [my_test_esrver]
session?

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080520/7d5da4a5/attachment.htm 


More information about the Developer mailing list