diff options
author | mingchen | 2007-06-28 19:09:50 +0000 |
---|---|---|
committer | mingchen | 2007-06-28 19:09:50 +0000 |
commit | fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5 (patch) | |
tree | 3ec7a1b247e84add390e962a58d26ec43c29e240 /OpenSim/Framework/Communications | |
parent | enabled physics plugin flying flags. (diff) | |
download | opensim-SC-fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5.zip opensim-SC-fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5.tar.gz opensim-SC-fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5.tar.bz2 opensim-SC-fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5.tar.xz |
*Added UUIDNameRequest packet support (untested, but should work -- at least in sandbox mode)
*Various small renamings
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r-- | OpenSim/Framework/Communications/CommunicationsManager.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs index 69b5da6..b17b37b 100644 --- a/OpenSim/Framework/Communications/CommunicationsManager.cs +++ b/OpenSim/Framework/Communications/CommunicationsManager.cs | |||
@@ -30,9 +30,11 @@ using System.Collections; | |||
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Text; | 31 | using System.Text; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Data; | ||
33 | using OpenSim.Framework.Interfaces; | 34 | using OpenSim.Framework.Interfaces; |
34 | using OpenSim.Framework.Types; | 35 | using OpenSim.Framework.Types; |
35 | using libsecondlife; | 36 | using libsecondlife; |
37 | using libsecondlife.Packets; | ||
36 | 38 | ||
37 | namespace OpenSim.Framework.Communications | 39 | namespace OpenSim.Framework.Communications |
38 | { | 40 | { |
@@ -48,5 +50,21 @@ namespace OpenSim.Framework.Communications | |||
48 | { | 50 | { |
49 | ServersInfo = serversInfo; | 51 | ServersInfo = serversInfo; |
50 | } | 52 | } |
53 | |||
54 | #region Packet Handlers | ||
55 | public void HandleUUIDNameRequest(LLUUID uuid, IClientAPI remote_client) | ||
56 | { | ||
57 | UserProfileData profileData = this.UserServer.GetUserProfile(uuid); | ||
58 | if (profileData != null) | ||
59 | { | ||
60 | UUIDNameReplyPacket packet = new UUIDNameReplyPacket(); | ||
61 | packet.UUIDNameBlock[0].ID = profileData.UUID; | ||
62 | packet.UUIDNameBlock[0].FirstName = libsecondlife.Helpers.StringToField(profileData.username); | ||
63 | packet.UUIDNameBlock[0].LastName = libsecondlife.Helpers.StringToField(profileData.surname); | ||
64 | remote_client.OutPacket((Packet)packet); | ||
65 | } | ||
66 | |||
67 | } | ||
68 | #endregion | ||
51 | } | 69 | } |
52 | } | 70 | } |