aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/OpenSim.RegionServer/PacketServer.cs59
1 files changed, 59 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/PacketServer.cs b/OpenSim/OpenSim.RegionServer/PacketServer.cs
index f4653e9..f3a7d73 100644
--- a/OpenSim/OpenSim.RegionServer/PacketServer.cs
+++ b/OpenSim/OpenSim.RegionServer/PacketServer.cs
@@ -60,6 +60,11 @@ namespace OpenSim
60 } 60 }
61 } 61 }
62 62
63 /// <summary>
64 ///
65 /// </summary>
66 /// <param name="circuitCode"></param>
67 /// <param name="packet"></param>
63 public virtual void ClientInPacket(uint circuitCode, Packet packet) 68 public virtual void ClientInPacket(uint circuitCode, Packet packet)
64 { 69 {
65 if (this.ClientThreads.ContainsKey(circuitCode)) 70 if (this.ClientThreads.ContainsKey(circuitCode))
@@ -68,36 +73,79 @@ namespace OpenSim
68 } 73 }
69 } 74 }
70 75
76 /// <summary>
77 ///
78 /// </summary>
79 /// <param name="circuitCode"></param>
80 /// <returns></returns>
71 public virtual bool AddNewCircuitCodeClient(uint circuitCode) 81 public virtual bool AddNewCircuitCodeClient(uint circuitCode)
72 { 82 {
73 return false; 83 return false;
74 } 84 }
75 85
86 /// <summary>
87 ///
88 /// </summary>
89 /// <param name="packet"></param>
76 public virtual void SendPacketToAllClients(Packet packet) 90 public virtual void SendPacketToAllClients(Packet packet)
77 { 91 {
78 92
79 } 93 }
80 94
95 /// <summary>
96 ///
97 /// </summary>
98 /// <param name="packet"></param>
99 /// <param name="simClient"></param>
81 public virtual void SendPacketToAllExcept(Packet packet, ClientView simClient) 100 public virtual void SendPacketToAllExcept(Packet packet, ClientView simClient)
82 { 101 {
83 102
84 } 103 }
85 104
105 /// <summary>
106 ///
107 /// </summary>
108 /// <param name="packetType"></param>
109 /// <param name="handler"></param>
86 public virtual void AddClientPacketHandler(PacketType packetType, PacketMethod handler) 110 public virtual void AddClientPacketHandler(PacketType packetType, PacketMethod handler)
87 { 111 {
88 112
89 } 113 }
90 114
115 /// <summary>
116 ///
117 /// </summary>
91 public virtual void RegisterClientPacketHandlers() 118 public virtual void RegisterClientPacketHandlers()
92 { 119 {
93 120
94 } 121 }
95 122
123 /// <summary>
124 ///
125 /// </summary>
126 /// <param name="remoteEP"></param>
127 /// <param name="initialcirpack"></param>
128 /// <param name="clientThreads"></param>
129 /// <param name="world"></param>
130 /// <param name="assetCache"></param>
131 /// <param name="packServer"></param>
132 /// <param name="inventoryCache"></param>
133 /// <param name="authenSessions"></param>
134 /// <returns></returns>
96 protected virtual ClientView CreateNewClient(EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary<uint, ClientView> clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions) 135 protected virtual ClientView CreateNewClient(EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary<uint, ClientView> clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions)
97 { 136 {
98 return new ClientView(remoteEP, initialcirpack, clientThreads, world, assetCache, packServer, inventoryCache, authenSessions ); 137 return new ClientView(remoteEP, initialcirpack, clientThreads, world, assetCache, packServer, inventoryCache, authenSessions );
99 } 138 }
100 139
140 /// <summary>
141 ///
142 /// </summary>
143 /// <param name="epSender"></param>
144 /// <param name="useCircuit"></param>
145 /// <param name="assetCache"></param>
146 /// <param name="inventoryCache"></param>
147 /// <param name="authenticateSessionsClass"></param>
148 /// <returns></returns>
101 public virtual bool AddNewClient(EndPoint epSender, UseCircuitCodePacket useCircuit, AssetCache assetCache, InventoryCache inventoryCache, AuthenticateSessionsBase authenticateSessionsClass) 149 public virtual bool AddNewClient(EndPoint epSender, UseCircuitCodePacket useCircuit, AssetCache assetCache, InventoryCache inventoryCache, AuthenticateSessionsBase authenticateSessionsClass)
102 { 150 {
103 ClientView newuser = 151 ClientView newuser =
@@ -110,11 +158,22 @@ namespace OpenSim
110 return true; 158 return true;
111 } 159 }
112 160
161 /// <summary>
162 ///
163 /// </summary>
164 /// <param name="buffer"></param>
165 /// <param name="size"></param>
166 /// <param name="flags"></param>
167 /// <param name="circuitcode"></param>
113 public virtual void SendPacketTo(byte[] buffer, int size, SocketFlags flags, uint circuitcode) 168 public virtual void SendPacketTo(byte[] buffer, int size, SocketFlags flags, uint circuitcode)
114 { 169 {
115 this._networkHandler.SendPacketTo(buffer, size, flags, circuitcode); 170 this._networkHandler.SendPacketTo(buffer, size, flags, circuitcode);
116 } 171 }
117 172
173 /// <summary>
174 ///
175 /// </summary>
176 /// <param name="circuitcode"></param>
118 public virtual void RemoveClientCircuit(uint circuitcode) 177 public virtual void RemoveClientCircuit(uint circuitcode)
119 { 178 {
120 this._networkHandler.RemoveClientCircuit(circuitcode); 179 this._networkHandler.RemoveClientCircuit(circuitcode);