[interfacekit] Fwd: Preliminary registrar info

Folks,

DarkWyrm and I are going to be working with Tyler Dauwalder and Ingo 
Weinhold from the Storage Kit on the nefarious registrar.  We'll be 
hosting the discussion of the joint venture here.

>While we're waiting on getting the discussion stuff going, I had a peek 
at 
>the symbol table and a little additional nosing around. The symbol 
table 
>itself contains all sorts of very interesting stuff and plenty of hints 
on 
>how to handle each task. My suggestion for tackling this 
almost-completely-
>undocumented black box is to use what we can figure out about the 
registrar 
>along side a symbol table dump to figure out how this beast should be 
put 
>together.

Good idea.  Can you take on documenting all this information?  I think 
we should also document what the registrar's responsibilities are -- I 
don't think there is a single place where all this is listed together.  
I can do this if nobody else wants to.

>The registrar has 3 threads - main_mime, timer_thread, and 
_roster_thread_, 
>which most likely handle their namesake tasks. Interestingly enough, 
the 
>application-related stuff is not quite a BApplication, but not quite 
_not_ a 
>BApplication. Most BApplications have an AppLooperPort along with snd 
and rcv 
>ports. The registrar doesn't. Instead, it has somehow made its 
AppLooperPort 
>into  _roster_port_ whilst keeping the other two. It does have its own 
shadow 
>app in the app_server, so it must otherwise be a BApplication. Perhaps 
it has 
>a private copy of BApplication and sets its port name that way? Just a 
few 
>thoughts...

It seems to me that the easiest way for this to happen is if 
BApplication checks to see if it is the roster and names its port 
accordingly.  In fact, this is probably the *only* way to do it, since 
the port_id is private (to BLooper, which BApplication is a friend of) 
and you can't rename a port after it's been created.

e

Necessity is the plea for every infringement of human freedom. It is the 
argument of tyrants; it is the creed of slaves.
        -William Pitt, British prime-minister (1759-1806)


Other related posts: