| 905 |
public override void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint) |
public override void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint) |
| 906 |
{ |
{ |
| 907 |
IRexUDPPort module = m_scene.RequestModuleInterface<IRexUDPPort>(); |
IRexUDPPort module = m_scene.RequestModuleInterface<IRexUDPPort>(); |
| 908 |
|
if (module != null) |
| 909 |
|
{ |
| 910 |
int udpport = module.GetPort(neighbourHandle); |
int udpport = module.GetPort(neighbourHandle); |
| 911 |
|
|
| 912 |
m_log.DebugFormat("[REXCLIENT]: Informing Client About Neighbour {0}", neighbourExternalEndPoint); |
m_log.DebugFormat("[REXCLIENT]: Informing Client About Neighbour {0}", neighbourExternalEndPoint); |
| 913 |
base.InformClientOfNeighbour(neighbourHandle, new IPEndPoint(neighbourExternalEndPoint.Address, udpport)); |
base.InformClientOfNeighbour(neighbourHandle, new IPEndPoint(neighbourExternalEndPoint.Address, udpport)); |
| 914 |
} |
} |
| 915 |
|
else |
| 916 |
|
{ |
| 917 |
|
base.InformClientOfNeighbour(neighbourHandle, neighbourExternalEndPoint); |
| 918 |
|
} |
| 919 |
|
} |
| 920 |
|
|
| 921 |
public override void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt, IPEndPoint externalIPEndPoint, |
public override void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt, IPEndPoint externalIPEndPoint, |
| 922 |
string capsURL) |
string capsURL) |
| 923 |
{ |
{ |
| 924 |
IRexUDPPort module = m_scene.RequestModuleInterface<IRexUDPPort>(); |
IRexUDPPort module = m_scene.RequestModuleInterface<IRexUDPPort>(); |
| 925 |
|
if (module != null) |
| 926 |
|
{ |
| 927 |
int udpport = module.GetPort(newRegionHandle); |
int udpport = module.GetPort(newRegionHandle); |
| 928 |
|
|
| 929 |
m_log.DebugFormat("[REXCLIENT]: Crossing client to region {0}", externalIPEndPoint); |
m_log.DebugFormat("[REXCLIENT]: Crossing client to region {0}", externalIPEndPoint); |
| 930 |
base.CrossRegion(newRegionHandle, pos, lookAt, new IPEndPoint(externalIPEndPoint.Address, udpport), capsURL); |
base.CrossRegion(newRegionHandle, pos, lookAt, new IPEndPoint(externalIPEndPoint.Address, udpport), capsURL); |
| 931 |
} |
} |
| 932 |
|
else |
| 933 |
|
{ |
| 934 |
|
base.CrossRegion(newRegionHandle, pos, lookAt, externalIPEndPoint, capsURL); |
| 935 |
|
} |
| 936 |
|
} |
| 937 |
|
|
| 938 |
public override void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint newRegionEndPoint, uint locationID, |
public override void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint newRegionEndPoint, uint locationID, |
| 939 |
uint flags, string capsURL) |
uint flags, string capsURL) |
| 940 |
{ |
{ |
| 941 |
IRexUDPPort module = m_scene.RequestModuleInterface<IRexUDPPort>(); |
IRexUDPPort module = m_scene.RequestModuleInterface<IRexUDPPort>(); |
| 942 |
|
if (module != null) |
| 943 |
|
{ |
| 944 |
int udpport = module.GetPort(regionHandle); |
int udpport = module.GetPort(regionHandle); |
| 945 |
|
|
| 946 |
m_log.DebugFormat("[REXCLIENT]: Sending region teleport to client {0}", newRegionEndPoint); |
m_log.DebugFormat("[REXCLIENT]: Sending region teleport to client {0}", newRegionEndPoint); |
| 947 |
base.SendRegionTeleport(regionHandle, simAccess, new IPEndPoint(newRegionEndPoint.Address, udpport), locationID, flags, capsURL); |
base.SendRegionTeleport(regionHandle, simAccess, new IPEndPoint(newRegionEndPoint.Address, udpport), locationID, flags, capsURL); |
| 948 |
} |
} |
| 949 |
|
else |
| 950 |
|
{ |
| 951 |
|
base.SendRegionTeleport(regionHandle, simAccess, newRegionEndPoint, locationID, flags, capsURL); |
| 952 |
|
} |
| 953 |
|
} |
| 954 |
|
|
| 955 |
#region Avatar terse update |
#region Avatar terse update |
| 956 |
|
|