diff options
author | Teravus Ovares | 2008-01-06 18:18:19 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-01-06 18:18:19 +0000 |
commit | b8efd5f2949dd247590c1e40509e71031faf3413 (patch) | |
tree | 02307ef3edef08bf1a393d89cd772ad8d0ee7ae5 /OpenSim/Grid/UserServer/UserLoginService.cs | |
parent | Set svn:eol-style. (diff) | |
download | opensim-SC_OLD-b8efd5f2949dd247590c1e40509e71031faf3413.zip opensim-SC_OLD-b8efd5f2949dd247590c1e40509e71031faf3413.tar.gz opensim-SC_OLD-b8efd5f2949dd247590c1e40509e71031faf3413.tar.bz2 opensim-SC_OLD-b8efd5f2949dd247590c1e40509e71031faf3413.tar.xz |
* Added some userserver glue for communications with the message server
* Added some code for the message server, fixed a few references and starting to flesh it out.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/UserServer/UserLoginService.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index 1a3bf2e..98d19f7 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs | |||
@@ -43,8 +43,13 @@ using InventoryFolder=OpenSim.Framework.InventoryFolder; | |||
43 | 43 | ||
44 | namespace OpenSim.Grid.UserServer | 44 | namespace OpenSim.Grid.UserServer |
45 | { | 45 | { |
46 | public delegate void UserLoggedInAtLocation(LLUUID agentID, LLUUID sessionID, LLUUID RegionID, ulong regionhandle, LLVector3 Position); | ||
47 | |||
48 | |||
46 | public class UserLoginService : LoginService | 49 | public class UserLoginService : LoginService |
47 | { | 50 | { |
51 | public event UserLoggedInAtLocation OnUserLoggedInAtLocation; | ||
52 | |||
48 | public UserConfig m_config; | 53 | public UserConfig m_config; |
49 | 54 | ||
50 | public UserLoginService( | 55 | public UserLoginService( |
@@ -198,6 +203,10 @@ namespace OpenSim.Grid.UserServer | |||
198 | // Send | 203 | // Send |
199 | XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams); | 204 | XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams); |
200 | XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000); | 205 | XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000); |
206 | if (OnUserLoggedInAtLocation != null) | ||
207 | { | ||
208 | OnUserLoggedInAtLocation(theUser.UUID, theUser.currentAgent.sessionID, theUser.currentAgent.currentRegion, theUser.currentAgent.currentHandle, theUser.currentAgent.currentPos); | ||
209 | } | ||
201 | } | 210 | } |
202 | 211 | ||
203 | catch (Exception e) | 212 | catch (Exception e) |