aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Controller.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Controller.cs')
-rw-r--r--Controller.cs20
1 files changed, 18 insertions, 2 deletions
diff --git a/Controller.cs b/Controller.cs
index 6282ce3..b7112f1 100644
--- a/Controller.cs
+++ b/Controller.cs
@@ -64,8 +64,8 @@ namespace OpenSim
64 private LoginManager _loginManager; //built in login server 64 private LoginManager _loginManager; //built in login server
65 private ulong time; //ticks 65 private ulong time; //ticks
66 private Timer timer1 = new Timer(); 66 private Timer timer1 = new Timer();
67 67 private System.Text.Encoding _enc = System.Text.Encoding.ASCII;
68 68
69 public Controller() { 69 public Controller() {
70 _login = new Logon(); // should create a list for these. 70 _login = new Logon(); // should create a list for these.
71 _server = new Server( this ); 71 _server = new Server( this );
@@ -120,6 +120,22 @@ namespace OpenSim
120 this._gridManager.RequestMapBlock(userInfo, MapRequest.PositionData.MinX, MapRequest.PositionData.MinY, MapRequest.PositionData.MaxX, MapRequest.PositionData.MaxY); 120 this._gridManager.RequestMapBlock(userInfo, MapRequest.PositionData.MinX, MapRequest.PositionData.MinY, MapRequest.PositionData.MaxX, MapRequest.PositionData.MaxY);
121 121
122 } 122 }
123 else if( pack.Type == PacketType.UUIDNameRequest)
124 {
125 UUIDNameRequestPacket nameRequest = (UUIDNameRequestPacket) pack;
126 UUIDNameReplyPacket nameReply = new UUIDNameReplyPacket();
127 nameReply.UUIDNameBlock = new UUIDNameReplyPacket.UUIDNameBlockBlock[nameRequest.UUIDNameBlock.Length];
128
129 for(int i = 0; i < nameRequest.UUIDNameBlock.Length; i++)
130 {
131 nameReply.UUIDNameBlock[i] = new UUIDNameReplyPacket.UUIDNameBlockBlock();
132 nameReply.UUIDNameBlock[i].ID = nameRequest.UUIDNameBlock[i].ID;
133 nameReply.UUIDNameBlock[i].FirstName = _enc.GetBytes("harry \0"); //for now send any name
134 nameReply.UUIDNameBlock[i].LastName = _enc.GetBytes("tom \0"); //in future need to look it up
135 }
136
137 _server.SendPacket(nameReply, true, userInfo);
138 }
123 else if(pack.Type == PacketType.CloseCircuit) 139 else if(pack.Type == PacketType.CloseCircuit)
124 { 140 {
125 this._agentManager.RemoveAgent(userInfo); 141 this._agentManager.RemoveAgent(userInfo);