aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer
diff options
context:
space:
mode:
authorMW2007-05-31 16:30:42 +0000
committerMW2007-05-31 16:30:42 +0000
commite92ab35b0540e09bd0007dbe2de0b32c3832cc76 (patch)
treebc6afb57bc4234a043edaaab2802b910c885e943 /OpenSim/OpenSim.RegionServer
parentImplementing a test Communications manager to test some of the interfaces (li... (diff)
downloadopensim-SC-e92ab35b0540e09bd0007dbe2de0b32c3832cc76.zip
opensim-SC-e92ab35b0540e09bd0007dbe2de0b32c3832cc76.tar.gz
opensim-SC-e92ab35b0540e09bd0007dbe2de0b32c3832cc76.tar.bz2
opensim-SC-e92ab35b0540e09bd0007dbe2de0b32c3832cc76.tar.xz
Another commit as ordered by robl
Diffstat (limited to 'OpenSim/OpenSim.RegionServer')
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.API.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs
index b7d87ed..e14b7b7 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs
@@ -373,6 +373,35 @@ namespace OpenSim
373 373
374 return objdata; 374 return objdata;
375 } 375 }
376
377 protected void InformClientOfNeighbour(ulong neighbourHandle, System.Net.IPAddress neighbourIP, ushort neighbourPort)
378 {
379 EnableSimulatorPacket enablesimpacket = new EnableSimulatorPacket();
380 enablesimpacket.SimulatorInfo = new EnableSimulatorPacket.SimulatorInfoBlock();
381 enablesimpacket.SimulatorInfo.Handle = neighbourHandle;
382
383 byte[] byteIP = neighbourIP.GetAddressBytes();
384 enablesimpacket.SimulatorInfo.IP = (uint)byteIP[3] << 24;
385 enablesimpacket.SimulatorInfo.IP += (uint)byteIP[2] << 16;
386 enablesimpacket.SimulatorInfo.IP += (uint)byteIP[1] << 8;
387 enablesimpacket.SimulatorInfo.IP += (uint)byteIP[0];
388 enablesimpacket.SimulatorInfo.Port = neighbourPort;
389 OutPacket(enablesimpacket);
390 }
391
392 public AgentCircuitData RequestClientInfo()
393 {
394 AgentCircuitData agentData = new AgentCircuitData();
395 agentData.AgentID = this.AgentId;
396 agentData.SessionID = this.SessionID;
397 agentData.SecureSessionID = this.SecureSessionID;
398 agentData.circuitcode = this.CircuitCode;
399 agentData.child = false;
400 agentData.firstname = this.firstName;
401 agentData.lastname = this.lastName;
402
403 return agentData;
404 }
376 #endregion 405 #endregion
377 406
378 } 407 }