mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* With EventQueueGet enabled.. we can see into neighbor regions again on the Security 'fixed' client.. But don't try to cross yet!
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Net;
|
||||
|
||||
using System.Net;
|
||||
using OpenMetaverse;
|
||||
using OpenMetaverse.StructuredData;
|
||||
|
||||
namespace OpenSim.Region.Environment
|
||||
@@ -36,10 +36,23 @@ namespace OpenSim.Region.Environment
|
||||
{
|
||||
private EventQueueHelper() {} // no construction possible, it's an utility class
|
||||
|
||||
public static LLSD EnableSimulator(ulong regionHandle, IPEndPoint endPoint)
|
||||
public static LLSD EnableSimulator(ulong Handle, IPEndPoint endPoint)
|
||||
{
|
||||
LLSDMap llsdSimInfo = new LLSDMap(3);
|
||||
llsdSimInfo.Add("Handle", new LLSDBinary(regionHandle));
|
||||
byte[] regionhandle = new byte[8];
|
||||
int i = 0;
|
||||
|
||||
// Reverse endianness of RegionHandle
|
||||
regionhandle[i++] = (byte)((Handle >> 56) % 256);
|
||||
regionhandle[i++] = (byte)((Handle >> 48) % 256);
|
||||
regionhandle[i++] = (byte)((Handle >> 40) % 256);
|
||||
regionhandle[i++] = (byte)((Handle >> 32) % 256);
|
||||
regionhandle[i++] = (byte)((Handle >> 24) % 256);
|
||||
regionhandle[i++] = (byte)((Handle >> 16) % 256);
|
||||
regionhandle[i++] = (byte)((Handle >> 8) % 256);
|
||||
regionhandle[i++] = (byte)(Handle % 256);
|
||||
|
||||
llsdSimInfo.Add("Handle", new LLSDBinary(regionhandle));
|
||||
llsdSimInfo.Add("IP", new LLSDBinary(endPoint.Address.GetAddressBytes()));
|
||||
llsdSimInfo.Add("Port", new LLSDInteger(endPoint.Port));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user