Major change in Simian to abstract all UDP handling away from Agent into an IUDPProvider. UDPServer is now thinly wrapped with a UDPManager extension to provide the main packet handling facilities of Simian
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2180 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Simian.Extensions
|
||||
|
||||
public void Start()
|
||||
{
|
||||
Server.UDPServer.RegisterPacketCallback(PacketType.RequestImage, new UDPServer.PacketCallback(RequestImageHandler));
|
||||
Server.UDP.RegisterPacketCallback(PacketType.RequestImage, new PacketCallback(RequestImageHandler));
|
||||
|
||||
Bitmap defaultImage = new Bitmap(32, 32);
|
||||
Graphics gfx = Graphics.FromImage(defaultImage);
|
||||
@@ -69,7 +69,7 @@ namespace Simian.Extensions
|
||||
}
|
||||
imageData.ImageID.Size = (uint)imageData.ImageData.Data.Length;
|
||||
|
||||
agent.SendPacket(imageData);
|
||||
Server.UDP.SendPacket(agent.AgentID, imageData, PacketCategory.Texture);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user