diff options
Another commit as ordered by robl
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/ClientView.API.cs')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/ClientView.API.cs | 29 |
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 | } |