<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I think that's what Melanie is leaning towards, but that would mean every module would have to be connected to at least one scene.<BR><BR>
I do believe that you would have modules doing stuff already from a setting where there is no scenes loaded.<BR>
 <BR>
The regionLoader, for example. :D<BR> <BR>Best regards,<BR>Stefan Andersson<BR>Tribal Media AB<BR><BR><BR><BR> <BR>
<HR id=stopSpelling>
From: adam@deepthink.com.au<BR>To: opensim-dev@lists.berlios.de; michaelwri22@yahoo.co.uk<BR>Date: Thu, 26 Feb 2009 05:21:48 -0500<BR>Subject: Re: [Opensim-dev] Comms Manager<BR><BR>
<STYLE>
.ExternalClass .EC_shape
{;}
</STYLE>

<STYLE>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass pre
{margin-bottom:.0001pt;font-size:10.0pt;font-family:'Courier New';}
.ExternalClass span.EC_HTMLPreformattedChar
{font-family:Consolas;}
.ExternalClass span.EC_EmailStyle20
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .EC_MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.EC_Section1
{page:Section1;}
</STYLE>

<DIV class=EC_Section1>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Do we need the comms manager?</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Can’t we just register them individually via Scene.RegisterModuleInterface, then pull what we want when we need it?</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Adam</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=EC_MsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> opensim-dev-bounces@lists.berlios.de [mailto:opensim-dev-bounces@lists.berlios.de] <B>On Behalf Of </B>Stefan Andersson<BR><B>Sent:</B> Thursday, 26 February 2009 2:10 AM<BR><B>To:</B> Michael Wright; opensim-dev@lists.berlios.de<BR><B>Subject:</B> Re: [Opensim-dev] Comms Manager</SPAN></P></DIV></DIV>
<P class=EC_MsoNormal> </P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Actually, I think the various 'module types' should bee seen as reflecting on what system resources will be made available to those modules - both as a conveniense (better suited API entrypoints) and for security (being able to set policies on modules)<BR><BR>Also, I very much see these repository functions that we are looking at as taking care of 'configuration' - ie, to make sure that the module code don't have to take care of, or know anyhting about, the configuration of other parts of the system.<BR><BR>Best regards,<BR>Stefan Andersson<BR>Tribal Media AB<BR><BR><BR><BR> </SPAN></P>
<DIV class=EC_MsoNormal style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">
<HR id=EC_stopSpelling align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=EC_MsoNormal style="MARGIN-BOTTOM: 12pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Date: Thu, 26 Feb 2009 10:05:46 +0000<BR>From: michaelwri22@yahoo.co.uk<BR>To: opensim-dev@lists.berlios.de<BR>Subject: Re: [Opensim-dev] Comms Manager</SPAN></P>
<TABLE class=EC_MsoNormalTable cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm" vAlign=top>
<P class=EC_MsoNormal>PS. One issue that I don't  like about a lot of the Region to UGAIM code that is currently in some of the region modules, is how the network/transport code is mixed up with the handling of some basic features like friends, presences etc. I do think we should have separate transport modules.<BR><BR>So maybe a IPresenceTransportService, then we could have PresenceOGS1Module that implements that. And the PresenceModule uses that interface for talking to and from the UGAIM servers. Rather than network code being mixed in with logic code in a single module.<BR><BR>Now if these are region modules or Global/comms modules is a different question. I just think we should have more specialisation in the modules so we can easily change the network protocols without replacing the whole sub system of a feature.<BR><BR>--- On <B>Thu, 26/2/09, MW <I><michaelwri22@yahoo.co.uk></I></B> wrote:</P>
<P class=EC_MsoNormal style="MARGIN-BOTTOM: 12pt">From: MW <michaelwri22@yahoo.co.uk><BR>Subject: Re: [Opensim-dev] Comms Manager<BR>To: opensim-dev@lists.berlios.de<BR>Date: Thursday, 26 February, 2009, 9:44 AM</P>
<DIV id=EC_EC_yiv1148541233>
<TABLE class=EC_MsoNormalTable cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm" vAlign=top>
<P class=EC_MsoNormal><SPAN style="FONT-FAMILY: 'inherit','serif'">Well I agree the name CommsManager is a bad choice and I'm all for changing/getting rid of that. I don't see this as a Manager but just another registery of modules. My proposal certainly isn't about making/keeping all the comms code centralised. I totally agree that we should have modules, and break up the current classes/interfaces in the Comms Manager.<BR><BR>The main differences between my proposal for comms modules and region modules are comms modules are initialised before regions/scenes are created and have no direct references to the scenes (although of course scene/region modules could register to events on them etc). But even that no direct reference could be changed. <BR><BR>Also having this separate module system would also allow it to use the modules from the Grid,User and messaging servers (and maybe later the inventory/asset servers), which I think could help a lot to cut down the duplications we have between standalone and grid servers.<BR><BR>But my main issue with this concept (the comms modules and registery) is there isn't really that much difference between these and region modules. So is there any point in having the two systems/registeries. My concept is basically a Shared module and registery but more at the application level rather than the region level. <BR><BR>I'm not actually really against having all the comms in region modules. But do think it brings up some issues. I don't actually agree that app level code/plugins shouldn't be able to access the comms to the UGAIM servers without going through regions or duplicating the comms handling code. And I know some of the other devs have even more issues with all the comms code being in region modules. So we need to find a solution that we are all happy with.<BR><BR>Maybe the solution is to work on separating the shared region modules out, so they are a actual different class/interface to the normal region modules and maybe a different registery(?). As has been talked about in irc a lot recently. But I guess these would still be accessed through regions/scenes? So really no different from a usage point of view to what we have now.<BR><BR><BR>--- On <B>Thu, 26/2/09, Melanie <I><melanie@t-data.com></I></B> wrote:</SPAN></P>
<P class=EC_MsoNormal style="MARGIN-BOTTOM: 12pt"><SPAN style="FONT-FAMILY: 'inherit','serif'">From: Melanie <melanie@t-data.com><BR>Subject: Re: [Opensim-dev] Comms Manager<BR>To: michaelwri22@yahoo.co.uk, opensim-dev@lists.berlios.de<BR>Date: Thursday, 26 February, 2009, 4:33 AM</SPAN></P><PRE>Hi,<BR>
    <BR>
I'm against a CommsManager class, on the grounds I'm against most <BR>
other *Manager classes.<BR>
They serve as holders for stuff that seems straightforward <BR>
initially, but soon become monolithic molochs that make a simple <BR>
change, like adding</PRE><PRE> a<BR>
 single method on a single interface, a task of <BR>
changing 37 files.<BR>
    <BR>
I don't think that any of the region comms currently in region <BR>
modules will need to be accessed from application plugins, since <BR>
they are region specific.<BR>
    <BR>
I would envision a system of application plugins similar to region <BR>
plugins, that would expose their own comms interfaces to do the sort <BR>
of comms the application, rather than a region, needs to do.<BR>
    <BR>
Forcing region comms to go through some CommsManager seems wrong.<BR>
    <BR>
Here, I see that specialization is about to be discarded for <BR>
convenience, and I don't agree. Region comms, like teleport comms, <BR>
don't belong in an application level comms broker, they belong in <BR>
region modules. So do most other comms I'm aware of. Take users, fir <BR>
instance. The application never talks about users, regions do. The <BR>
user server comms really should be a shared region module. <BR>
Modularisation is</PRE><PRE> the<BR>
 key here, not centralisation.<BR>
    <BR>
Melanie<BR>
    <BR>
    <BR>
MW wrote:<BR>
> More and more of the Region to UGAIM comms and Region to Region comms, is<BR>
being moved out of the Comms Manager and into region modules. Is this a process<BR>
we should continue and move everything out of there and into Region modules? <BR>
> <BR>
> I'm a bit torn on that issue, and I think a few other people are too.<BR>
We all know the current comms manager system is not the best :)  And its a real<BR>
pain to customise. <BR>
> <BR>
> One issue with having it all in region modules, is that everything has to<BR>
go through regions to be able to use those interfaces. Making it harder for app<BR>
plugins to do any comms related work. <BR>
> <BR>
> So if we decide to stick with a separate comms system (rather than moving<BR>
it to region modules), how can we improve it?<BR>
> <BR>
> I think the first two tasks are:<BR>
> * to improve the interfaces/make it</PRE><PRE> easier to<BR>
 extend.<BR>
> * and to make it so its loaded from plugins/dlls. <BR>
> <BR>
> One simple way of allowing plugins to create and setup the Comms Manager<BR>
would be making some small changes to the IApplicationPlugin interface:<BR>
> <BR>
> * Add a PostInitialise method to that interface. <BR>
> * Then changing the LoadRegionsPlugin so that it created the regions in<BR>
the IApplicationPlugin.PostInitialise call. <BR>
> * Which would allow us to create some SetupCommsManagerPlugins which could<BR>
do its work in the IApplicationPlugin.Initialise() call.<BR>
> <BR>
> [Note that brings up another issue that I want to deal with in another<BR>
email soon... of how do we define which plugins are loaded. And also if there<BR>
are multiple plugins, of the same type, in a single dll, how do we make some of<BR>
them get loaded but not others?]<BR>
> <BR>
> The next task would be to improve the interfaces of the Comms Manager</PRE><PRE> and<BR>
allow it to be<BR>
 expanded easier.<BR>
> <BR>
> The current set of interfaces in the Comms manager are:<BR>
> <BR>
> public class CommunicationsManager<BR>
> {<BR>
>         public IUserService UserService<BR>
>         public IMessagingService MessageService;<BR>
>         public IGridServices GridService<BR>
>         public UserProfileCacheService UserProfileCacheService<BR>
>         public IAvatarService AvatarService<BR>
>         public IAssetCache AssetCache<BR>
>         public NetworkServersInfo NetworkServersInfo     <BR>
>         public IUserAdminService UserAdminService'    <BR>
>         public BaseHttpServer HttpServer;<BR>
> }<BR>
> <BR>
> I propose making it so the CommsManager also implements the<BR>
IGridServiceCore interface which I've added to the User/Grid/Messaging<BR>
servers, as part of the process of modulising them.<BR>
> <BR>
> public interface IGridServiceCore<BR>
>  {<BR>
>  </PRE><PRE>       T<BR>
 Get<T>();<BR>
>         void RegisterInterface<T>(T iface);<BR>
>         bool TryGet<T>(out T iface);<BR>
>         BaseHttpServer GetHttpServer();<BR>
>  }<BR>
> <BR>
> Then the components of the CommsManager can register themselves with that,<BR>
and request other interfaces/Components. At the moment it would still need the<BR>
old interfaces to be assigned, as external code use them. But over time, we<BR>
should then change the external code so they use the TryGet<T>(out T<BR>
iface) call when they want one of the interfaces/Components. <BR>
> <BR>
> So eventually the CommsManager will basically just be that interface and a<BR>
set of "modules" loaded and registered with it. <BR>
> <BR>
> This brings the CommsManager more in line with the Region module system<BR>
and the IClientCore and soon to be in use UGM servers system. We could even make<BR>
it so it could load the same modules as the UGM servers</PRE><PRE> use if we<BR>
 wanted to. <BR>
> <BR>
> So thoughts, comments, bad fruit being thrown wanted.<BR>
>       <BR>
> <BR>
> <BR>
> <BR>
>       <BR>
> <BR>
> <BR>
> ------------------------------------------------------------------------<BR>
> <BR>
> _______________________________________________<BR>
> Opensim-dev mailing list<BR>
> Opensim-dev@lists.berlios.de<BR>
> https://lists.berlios.de/mailman/listinfo/opensim-dev<BR>
_______________________________________________<BR>
Opensim-dev mailing list<BR>
Opensim-dev@lists.berlios.de<BR>
https://lists.berlios.de/mailman/listinfo/opensim-dev</PRE></TD></TR></TBODY></TABLE>
<P class=EC_MsoNormal> </P></DIV><PRE>_______________________________________________<BR>
Opensim-dev mailing list<BR>
Opensim-dev@lists.berlios.de<BR>
https://lists.berlios.de/mailman/listinfo/opensim-dev</PRE></TD></TR></TBODY></TABLE>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"> </SPAN></P></DIV></DIV></body>
</html>