De-coupling the IClientAPI interface and ClientManager class from the
libsl/libomv Packet, as other client stacks could use other data types to pass packets around. Starting with InPacket() here, more to come.0.6.0-stable
parent
657af5e611
commit
97d5b5a1eb
|
@ -88,7 +88,12 @@ namespace OpenSim.Framework
|
|||
}
|
||||
}
|
||||
|
||||
public void InPacket(uint circuitCode, Packet packet)
|
||||
/// <summary>
|
||||
/// Pass incoming packet to client.
|
||||
/// </summary>
|
||||
/// <param name="circuitCode">uint identifying the connection/client.</param>
|
||||
/// <param name="packet">object containing the packet.</param>
|
||||
public void InPacket(uint circuitCode, object packet)
|
||||
{
|
||||
IClientAPI client;
|
||||
bool tryGetRet = false;
|
||||
|
|
|
@ -703,7 +703,7 @@ namespace OpenSim.Framework
|
|||
|
||||
|
||||
void SetDebug(int newDebug);
|
||||
void InPacket(Packet NewPack);
|
||||
void InPacket(object NewPack);
|
||||
void ProcessInPacket(Packet NewPack);
|
||||
void Close(bool ShutdownCircuit);
|
||||
void Kick(string message);
|
||||
|
|
|
@ -3688,12 +3688,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
m_PacketHandler.PacketQueue.SetThrottleFromClient(throttles);
|
||||
}
|
||||
|
||||
/// method gets called when a new packet has arrived from the UDP server. This happens after it's been decoded into a libsl object
|
||||
/// <summary>
|
||||
/// Method gets called when a new packet has arrived from the UDP
|
||||
/// server. This happens after it's been decoded into a libsl object.
|
||||
/// </summary>
|
||||
/// <param name="NewPack"></param>
|
||||
public virtual void InPacket(Packet NewPack)
|
||||
/// <param name="NewPack">object containing the packet.</param>
|
||||
public virtual void InPacket(object NewPack)
|
||||
{
|
||||
m_PacketHandler.InPacket(NewPack);
|
||||
// Cast NewPack to Packet.
|
||||
m_PacketHandler.InPacket((Packet) NewPack);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -716,7 +716,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
|||
{
|
||||
}
|
||||
|
||||
public void InPacket(Packet NewPack)
|
||||
public void InPacket(object NewPack)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -708,7 +708,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
|||
{
|
||||
}
|
||||
|
||||
public void InPacket(Packet NewPack)
|
||||
public void InPacket(object NewPack)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue