Files
opensim/OpenSim/Examples/SimpleApp2/MyPacketServer.cs
lbsa71 5d59ffe99d * Added the two Sample Apps to the solution
* Made them build
* They don't work though, gotta have a look see at that later.
* ignored a shitload of bins
2007-06-17 16:49:33 +00:00

33 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using OpenSim;
using OpenSim.Assets;
using System.Net;
using libsecondlife.Packets;
using OpenSim.Framework.Interfaces;
using OpenSim.Framework;
using OpenSim.Caches;
namespace SimpleApp2
{
public class MyPacketServer : PacketServer
{
private float[] m_map;
public MyPacketServer(float[] map, ClientStackNetworkHandler networkHandler, uint port)
: base(networkHandler, port)
{
m_map = map;
}
protected override ClientView CreateNewClient(EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary<uint, ClientView> clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions)
{
// (EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary<uint, ClientView> clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions)
return new MyClientView(m_map, ClientAPIs, remoteEP, initialcirpack, clientThreads, world, assetCache, packServer, inventoryCache, authenSessions);
}
}
}