aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client
diff options
context:
space:
mode:
authorAdam Frisby2009-04-22 10:10:19 +0000
committerAdam Frisby2009-04-22 10:10:19 +0000
commit03c307ecdb2c75700d838e163ea21a27aad294b2 (patch)
treedacc95be3e65ee04475b6a8b7953d8a954d14cf4 /OpenSim/Client
parentfurther cleanup (lower casing non-public vars and local vars) (diff)
downloadopensim-SC_OLD-03c307ecdb2c75700d838e163ea21a27aad294b2.zip
opensim-SC_OLD-03c307ecdb2c75700d838e163ea21a27aad294b2.tar.gz
opensim-SC_OLD-03c307ecdb2c75700d838e163ea21a27aad294b2.tar.bz2
opensim-SC_OLD-03c307ecdb2c75700d838e163ea21a27aad294b2.tar.xz
* Committing stub VW-over-HTTP ClientStack. (1/2)
* Nonfunctional, but eventually form a AJAX-accessible client protocol - for clients written in environments which only allow HTTP (eg HTML, Silverlight, Flash, etc). Designed for super-lightweight clients.
Diffstat (limited to 'OpenSim/Client')
-rw-r--r--OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs1036
-rw-r--r--OpenSim/Client/VWoHTTP/VWoHTTPModule.cs69
2 files changed, 1105 insertions, 0 deletions
diff --git a/OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs b/OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs
new file mode 100644
index 0000000..927cda7
--- /dev/null
+++ b/OpenSim/Client/VWoHTTP/ClientStack/VWHClientView.cs
@@ -0,0 +1,1036 @@
1using System;
2using System.Collections.Generic;
3using System.Net;
4using System.Text;
5using OpenMetaverse;
6using OpenMetaverse.Packets;
7using OpenSim.Framework;
8using OpenSim.Framework.Servers;
9using OpenSim.Region.Framework.Scenes;
10
11namespace OpenSim.Client.VWoHTTP.ClientStack
12{
13 class VWHClientView : IClientAPI
14 {
15 private Scene m_scene;
16
17 public void ProcessInMsg(OSHttpRequest req, OSHttpResponse resp)
18 {
19 string method = req.Url.AbsolutePath.Split('/')[2];
20 }
21
22 private void ProcessAssetRequest(OSHttpRequest req, OSHttpResponse resp)
23 {
24
25 }
26
27 public VWHClientView(UUID sessionID, UUID agentID, string agentName, Scene scene)
28 {
29 m_scene = scene;
30 }
31
32 #region Implementation of IClientAPI
33
34 public Vector3 StartPos
35 {
36 get { throw new System.NotImplementedException(); }
37 set { throw new System.NotImplementedException(); }
38 }
39
40 public UUID AgentId
41 {
42 get { throw new System.NotImplementedException(); }
43 }
44
45 public UUID SessionId
46 {
47 get { throw new System.NotImplementedException(); }
48 }
49
50 public UUID SecureSessionId
51 {
52 get { throw new System.NotImplementedException(); }
53 }
54
55 public UUID ActiveGroupId
56 {
57 get { throw new System.NotImplementedException(); }
58 }
59
60 public string ActiveGroupName
61 {
62 get { throw new System.NotImplementedException(); }
63 }
64
65 public ulong ActiveGroupPowers
66 {
67 get { throw new System.NotImplementedException(); }
68 }
69
70 public ulong GetGroupPowers(UUID groupID)
71 {
72 throw new System.NotImplementedException();
73 }
74
75 public bool IsGroupMember(UUID GroupID)
76 {
77 throw new System.NotImplementedException();
78 }
79
80 public string FirstName
81 {
82 get { throw new System.NotImplementedException(); }
83 }
84
85 public string LastName
86 {
87 get { throw new System.NotImplementedException(); }
88 }
89
90 public IScene Scene
91 {
92 get { throw new System.NotImplementedException(); }
93 }
94
95 public int NextAnimationSequenceNumber
96 {
97 get { throw new System.NotImplementedException(); }
98 }
99
100 public string Name
101 {
102 get { throw new System.NotImplementedException(); }
103 }
104
105 public bool IsActive
106 {
107 get { throw new System.NotImplementedException(); }
108 set { throw new System.NotImplementedException(); }
109 }
110
111 public bool SendLogoutPacketWhenClosing
112 {
113 set { throw new System.NotImplementedException(); }
114 }
115
116 public uint CircuitCode
117 {
118 get { throw new System.NotImplementedException(); }
119 }
120
121 public event GenericMessage OnGenericMessage = delegate { };
122 public event ImprovedInstantMessage OnInstantMessage = delegate { };
123 public event ChatMessage OnChatFromClient = delegate { };
124 public event TextureRequest OnRequestTexture = delegate { };
125 public event RezObject OnRezObject = delegate { };
126 public event ModifyTerrain OnModifyTerrain = delegate { };
127 public event BakeTerrain OnBakeTerrain = delegate { };
128 public event EstateChangeInfo OnEstateChangeInfo = delegate { };
129 public event SetAppearance OnSetAppearance = delegate { };
130 public event AvatarNowWearing OnAvatarNowWearing = delegate { };
131 public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv = delegate { return new UUID(); };
132 public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv = delegate { };
133 public event UUIDNameRequest OnDetachAttachmentIntoInv = delegate { };
134 public event ObjectAttach OnObjectAttach = delegate { };
135 public event ObjectDeselect OnObjectDetach = delegate { };
136 public event ObjectDrop OnObjectDrop = delegate { };
137 public event StartAnim OnStartAnim = delegate { };
138 public event StopAnim OnStopAnim = delegate { };
139 public event LinkObjects OnLinkObjects = delegate { };
140 public event DelinkObjects OnDelinkObjects = delegate { };
141 public event RequestMapBlocks OnRequestMapBlocks = delegate { };
142 public event RequestMapName OnMapNameRequest = delegate { };
143 public event TeleportLocationRequest OnTeleportLocationRequest = delegate { };
144 public event DisconnectUser OnDisconnectUser = delegate { };
145 public event RequestAvatarProperties OnRequestAvatarProperties = delegate { };
146 public event SetAlwaysRun OnSetAlwaysRun = delegate { };
147 public event TeleportLandmarkRequest OnTeleportLandmarkRequest = delegate { };
148 public event DeRezObject OnDeRezObject = delegate { };
149 public event Action<IClientAPI> OnRegionHandShakeReply = delegate { };
150 public event GenericCall2 OnRequestWearables = delegate { };
151 public event GenericCall2 OnCompleteMovementToRegion = delegate { };
152 public event UpdateAgent OnAgentUpdate = delegate { };
153 public event AgentRequestSit OnAgentRequestSit = delegate { };
154 public event AgentSit OnAgentSit = delegate { };
155 public event AvatarPickerRequest OnAvatarPickerRequest = delegate { };
156 public event Action<IClientAPI> OnRequestAvatarsData = delegate { };
157 public event AddNewPrim OnAddPrim = delegate { };
158 public event FetchInventory OnAgentDataUpdateRequest = delegate { };
159 public event TeleportLocationRequest OnSetStartLocationRequest = delegate { };
160 public event RequestGodlikePowers OnRequestGodlikePowers = delegate { };
161 public event GodKickUser OnGodKickUser = delegate { };
162 public event ObjectDuplicate OnObjectDuplicate = delegate { };
163 public event ObjectDuplicateOnRay OnObjectDuplicateOnRay = delegate { };
164 public event GrabObject OnGrabObject = delegate { };
165 public event ObjectSelect OnDeGrabObject = delegate { };
166 public event MoveObject OnGrabUpdate = delegate { };
167 public event SpinStart OnSpinStart = delegate { };
168 public event SpinObject OnSpinUpdate = delegate { };
169 public event SpinStop OnSpinStop = delegate { };
170 public event UpdateShape OnUpdatePrimShape = delegate { };
171 public event ObjectExtraParams OnUpdateExtraParams = delegate { };
172 public event ObjectSelect OnObjectSelect = delegate { };
173 public event ObjectDeselect OnObjectDeselect = delegate { };
174 public event GenericCall7 OnObjectDescription = delegate { };
175 public event GenericCall7 OnObjectName = delegate { };
176 public event GenericCall7 OnObjectClickAction = delegate { };
177 public event GenericCall7 OnObjectMaterial = delegate { };
178 public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily = delegate { };
179 public event UpdatePrimFlags OnUpdatePrimFlags = delegate { };
180 public event UpdatePrimTexture OnUpdatePrimTexture = delegate { };
181 public event UpdateVector OnUpdatePrimGroupPosition = delegate { };
182 public event UpdateVector OnUpdatePrimSinglePosition = delegate { };
183 public event UpdatePrimRotation OnUpdatePrimGroupRotation = delegate { };
184 public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation = delegate { };
185 public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation = delegate { };
186 public event UpdateVector OnUpdatePrimScale = delegate { };
187 public event UpdateVector OnUpdatePrimGroupScale = delegate { };
188 public event StatusChange OnChildAgentStatus = delegate { };
189 public event GenericCall2 OnStopMovement = delegate { };
190 public event Action<UUID> OnRemoveAvatar = delegate { };
191 public event ObjectPermissions OnObjectPermissions = delegate { };
192 public event CreateNewInventoryItem OnCreateNewInventoryItem = delegate { };
193 public event CreateInventoryFolder OnCreateNewInventoryFolder = delegate { };
194 public event UpdateInventoryFolder OnUpdateInventoryFolder = delegate { };
195 public event MoveInventoryFolder OnMoveInventoryFolder = delegate { };
196 public event FetchInventoryDescendents OnFetchInventoryDescendents = delegate { };
197 public event PurgeInventoryDescendents OnPurgeInventoryDescendents = delegate { };
198 public event FetchInventory OnFetchInventory = delegate { };
199 public event RequestTaskInventory OnRequestTaskInventory = delegate { };
200 public event UpdateInventoryItem OnUpdateInventoryItem = delegate { };
201 public event CopyInventoryItem OnCopyInventoryItem = delegate { };
202 public event MoveInventoryItem OnMoveInventoryItem = delegate { };
203 public event RemoveInventoryFolder OnRemoveInventoryFolder = delegate { };
204 public event RemoveInventoryItem OnRemoveInventoryItem = delegate { };
205 public event UDPAssetUploadRequest OnAssetUploadRequest = delegate { };
206 public event XferReceive OnXferReceive = delegate { };
207 public event RequestXfer OnRequestXfer = delegate { };
208 public event ConfirmXfer OnConfirmXfer = delegate { };
209 public event AbortXfer OnAbortXfer = delegate { };
210 public event RezScript OnRezScript = delegate { };
211 public event UpdateTaskInventory OnUpdateTaskInventory = delegate { };
212 public event MoveTaskInventory OnMoveTaskItem = delegate { };
213 public event RemoveTaskInventory OnRemoveTaskItem = delegate { };
214 public event RequestAsset OnRequestAsset = delegate { };
215 public event UUIDNameRequest OnNameFromUUIDRequest = delegate { };
216 public event ParcelAccessListRequest OnParcelAccessListRequest = delegate { };
217 public event ParcelAccessListUpdateRequest OnParcelAccessListUpdateRequest = delegate { };
218 public event ParcelPropertiesRequest OnParcelPropertiesRequest = delegate { };
219 public event ParcelDivideRequest OnParcelDivideRequest = delegate { };
220 public event ParcelJoinRequest OnParcelJoinRequest = delegate { };
221 public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest = delegate { };
222 public event ParcelSelectObjects OnParcelSelectObjects = delegate { };
223 public event ParcelObjectOwnerRequest OnParcelObjectOwnerRequest = delegate { };
224 public event ParcelAbandonRequest OnParcelAbandonRequest = delegate { };
225 public event ParcelGodForceOwner OnParcelGodForceOwner = delegate { };
226 public event ParcelReclaim OnParcelReclaim = delegate { };
227 public event ParcelReturnObjectsRequest OnParcelReturnObjectsRequest = delegate { };
228 public event ParcelDeedToGroup OnParcelDeedToGroup = delegate { };
229 public event RegionInfoRequest OnRegionInfoRequest = delegate { };
230 public event EstateCovenantRequest OnEstateCovenantRequest = delegate { };
231 public event FriendActionDelegate OnApproveFriendRequest = delegate { };
232 public event FriendActionDelegate OnDenyFriendRequest = delegate { };
233 public event FriendshipTermination OnTerminateFriendship = delegate { };
234 public event MoneyTransferRequest OnMoneyTransferRequest = delegate { };
235 public event EconomyDataRequest OnEconomyDataRequest = delegate { };
236 public event MoneyBalanceRequest OnMoneyBalanceRequest = delegate { };
237 public event UpdateAvatarProperties OnUpdateAvatarProperties = delegate { };
238 public event ParcelBuy OnParcelBuy = delegate { };
239 public event RequestPayPrice OnRequestPayPrice = delegate { };
240 public event ObjectSaleInfo OnObjectSaleInfo = delegate { };
241 public event ObjectBuy OnObjectBuy = delegate { };
242 public event BuyObjectInventory OnBuyObjectInventory = delegate { };
243 public event RequestTerrain OnRequestTerrain = delegate { };
244 public event RequestTerrain OnUploadTerrain = delegate { };
245 public event ObjectIncludeInSearch OnObjectIncludeInSearch = delegate { };
246 public event UUIDNameRequest OnTeleportHomeRequest = delegate { };
247 public event ScriptAnswer OnScriptAnswer = delegate { };
248 public event AgentSit OnUndo = delegate { };
249 public event ForceReleaseControls OnForceReleaseControls = delegate { };
250 public event GodLandStatRequest OnLandStatRequest = delegate { };
251 public event DetailedEstateDataRequest OnDetailedEstateDataRequest = delegate { };
252 public event SetEstateFlagsRequest OnSetEstateFlagsRequest = delegate { };
253 public event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture = delegate { };
254 public event SetEstateTerrainDetailTexture OnSetEstateTerrainDetailTexture = delegate { };
255 public event SetEstateTerrainTextureHeights OnSetEstateTerrainTextureHeights = delegate { };
256 public event CommitEstateTerrainTextureRequest OnCommitEstateTerrainTextureRequest = delegate { };
257 public event SetRegionTerrainSettings OnSetRegionTerrainSettings = delegate { };
258 public event EstateRestartSimRequest OnEstateRestartSimRequest = delegate { };
259 public event EstateChangeCovenantRequest OnEstateChangeCovenantRequest = delegate { };
260 public event UpdateEstateAccessDeltaRequest OnUpdateEstateAccessDeltaRequest = delegate { };
261 public event SimulatorBlueBoxMessageRequest OnSimulatorBlueBoxMessageRequest = delegate { };
262 public event EstateBlueBoxMessageRequest OnEstateBlueBoxMessageRequest = delegate { };
263 public event EstateDebugRegionRequest OnEstateDebugRegionRequest = delegate { };
264 public event EstateTeleportOneUserHomeRequest OnEstateTeleportOneUserHomeRequest = delegate { };
265 public event EstateTeleportAllUsersHomeRequest OnEstateTeleportAllUsersHomeRequest = delegate { };
266 public event UUIDNameRequest OnUUIDGroupNameRequest = delegate { };
267 public event RegionHandleRequest OnRegionHandleRequest = delegate { };
268 public event ParcelInfoRequest OnParcelInfoRequest = delegate { };
269 public event RequestObjectPropertiesFamily OnObjectGroupRequest = delegate { };
270 public event ScriptReset OnScriptReset = delegate { };
271 public event GetScriptRunning OnGetScriptRunning = delegate { };
272 public event SetScriptRunning OnSetScriptRunning = delegate { };
273 public event UpdateVector OnAutoPilotGo = delegate { };
274 public event TerrainUnacked OnUnackedTerrain = delegate { };
275 public event ActivateGesture OnActivateGesture = delegate { };
276 public event DeactivateGesture OnDeactivateGesture = delegate { };
277 public event ObjectOwner OnObjectOwner = delegate { };
278 public event DirPlacesQuery OnDirPlacesQuery = delegate { };
279 public event DirFindQuery OnDirFindQuery = delegate { };
280 public event DirLandQuery OnDirLandQuery = delegate { };
281 public event DirPopularQuery OnDirPopularQuery = delegate { };
282 public event DirClassifiedQuery OnDirClassifiedQuery = delegate { };
283 public event EventInfoRequest OnEventInfoRequest = delegate { };
284 public event ParcelSetOtherCleanTime OnParcelSetOtherCleanTime = delegate { };
285 public event MapItemRequest OnMapItemRequest = delegate { };
286 public event OfferCallingCard OnOfferCallingCard = delegate { };
287 public event AcceptCallingCard OnAcceptCallingCard = delegate { };
288 public event DeclineCallingCard OnDeclineCallingCard = delegate { };
289 public event SoundTrigger OnSoundTrigger = delegate { };
290 public event StartLure OnStartLure = delegate { };
291 public event TeleportLureRequest OnTeleportLureRequest = delegate { };
292 public event NetworkStats OnNetworkStatsUpdate = delegate { };
293 public event ClassifiedInfoRequest OnClassifiedInfoRequest = delegate { };
294 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate = delegate { };
295 public event ClassifiedDelete OnClassifiedDelete = delegate { };
296 public event ClassifiedDelete OnClassifiedGodDelete = delegate { };
297 public event EventNotificationAddRequest OnEventNotificationAddRequest = delegate { };
298 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest = delegate { };
299 public event EventGodDelete OnEventGodDelete = delegate { };
300 public event ParcelDwellRequest OnParcelDwellRequest = delegate { };
301 public event UserInfoRequest OnUserInfoRequest = delegate { };
302 public event UpdateUserInfo OnUpdateUserInfo = delegate { };
303 public event RetrieveInstantMessages OnRetrieveInstantMessages = delegate { };
304 public event PickDelete OnPickDelete = delegate { };
305 public event PickGodDelete OnPickGodDelete = delegate { };
306 public event PickInfoUpdate OnPickInfoUpdate = delegate { };
307 public event AvatarNotesUpdate OnAvatarNotesUpdate = delegate { };
308 public event MuteListRequest OnMuteListRequest = delegate { };
309
310
311 public void SetDebugPacketLevel(int newDebug)
312 {
313 throw new System.NotImplementedException();
314 }
315
316 public void InPacket(object NewPack)
317 {
318 throw new System.NotImplementedException();
319 }
320
321 public void ProcessInPacket(Packet NewPack)
322 {
323 throw new System.NotImplementedException();
324 }
325
326 public void Close(bool ShutdownCircuit)
327 {
328 throw new System.NotImplementedException();
329 }
330
331 public void Kick(string message)
332 {
333 throw new System.NotImplementedException();
334 }
335
336 public void Start()
337 {
338 throw new System.NotImplementedException();
339 }
340
341 public void Stop()
342 {
343 throw new System.NotImplementedException();
344 }
345
346 public void SendWearables(AvatarWearable[] wearables, int serial)
347 {
348 throw new System.NotImplementedException();
349 }
350
351 public void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry)
352 {
353 throw new System.NotImplementedException();
354 }
355
356 public void SendStartPingCheck(byte seq)
357 {
358 throw new System.NotImplementedException();
359 }
360
361 public void SendKillObject(ulong regionHandle, uint localID)
362 {
363 throw new System.NotImplementedException();
364 }
365
366 public void SendAnimations(UUID[] animID, int[] seqs, UUID sourceAgentId, UUID[] objectIDs)
367 {
368 throw new System.NotImplementedException();
369 }
370
371 public void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args)
372 {
373 throw new System.NotImplementedException();
374 }
375
376 public void SendChatMessage(string message, byte type, Vector3 fromPos, string fromName, UUID fromAgentID, byte source, byte audible)
377 {
378 throw new System.NotImplementedException();
379 }
380
381 public void SendInstantMessage(GridInstantMessage im)
382 {
383 throw new System.NotImplementedException();
384 }
385
386 public void SendGenericMessage(string method, List<string> message)
387 {
388 throw new System.NotImplementedException();
389 }
390
391 public void SendLayerData(float[] map)
392 {
393 throw new System.NotImplementedException();
394 }
395
396 public void SendLayerData(int px, int py, float[] map)
397 {
398 throw new System.NotImplementedException();
399 }
400
401 public void SendWindData(Vector2[] windSpeeds)
402 {
403 throw new System.NotImplementedException();
404 }
405
406 public void SendCloudData(float[] cloudCover)
407 {
408 throw new System.NotImplementedException();
409 }
410
411 public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
412 {
413 throw new System.NotImplementedException();
414 }
415
416 public void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint)
417 {
418 throw new System.NotImplementedException();
419 }
420
421 public AgentCircuitData RequestClientInfo()
422 {
423 throw new System.NotImplementedException();
424 }
425
426 public void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt, IPEndPoint newRegionExternalEndPoint, string capsURL)
427 {
428 throw new System.NotImplementedException();
429 }
430
431 public void SendMapBlock(List<MapBlockData> mapBlocks, uint flag)
432 {
433 throw new System.NotImplementedException();
434 }
435
436 public void SendLocalTeleport(Vector3 position, Vector3 lookAt, uint flags)
437 {
438 throw new System.NotImplementedException();
439 }
440
441 public void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID, uint flags, string capsURL)
442 {
443 throw new System.NotImplementedException();
444 }
445
446 public void SendTeleportFailed(string reason)
447 {
448 throw new System.NotImplementedException();
449 }
450
451 public void SendTeleportLocationStart()
452 {
453 throw new System.NotImplementedException();
454 }
455
456 public void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance)
457 {
458 throw new System.NotImplementedException();
459 }
460
461 public void SendPayPrice(UUID objectID, int[] payPrice)
462 {
463 throw new System.NotImplementedException();
464 }
465
466 public void SendAvatarData(ulong regionHandle, string firstName, string lastName, string grouptitle, UUID avatarID, uint avatarLocalID, Vector3 Pos, byte[] textureEntry, uint parentID, Quaternion rotation)
467 {
468 throw new System.NotImplementedException();
469 }
470
471 public void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, Vector3 position, Vector3 velocity, Quaternion rotation)
472 {
473 throw new System.NotImplementedException();
474 }
475
476 public void SendCoarseLocationUpdate(List<UUID> users, List<Vector3> CoarseLocations)
477 {
478 throw new System.NotImplementedException();
479 }
480
481 public void AttachObject(uint localID, Quaternion rotation, byte attachPoint, UUID ownerID)
482 {
483 throw new System.NotImplementedException();
484 }
485
486 public void SetChildAgentThrottle(byte[] throttle)
487 {
488 throw new System.NotImplementedException();
489 }
490
491 public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, Vector3 pos, Vector3 vel, Vector3 acc, Quaternion rotation, Vector3 rvel, uint flags, UUID objectID, UUID ownerID, string text, byte[] color, uint parentID, byte[] particleSystem, byte clickAction, byte material, byte[] textureanim, bool attachment, uint AttachPoint, UUID AssetId, UUID SoundId, double SoundVolume, byte SoundFlags, double SoundRadius)
492 {
493 throw new System.NotImplementedException();
494 }
495
496 public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, Vector3 pos, Vector3 vel, Vector3 acc, Quaternion rotation, Vector3 rvel, uint flags, UUID objectID, UUID ownerID, string text, byte[] color, uint parentID, byte[] particleSystem, byte clickAction, byte material)
497 {
498 throw new System.NotImplementedException();
499 }
500
501 public void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, Vector3 position, Quaternion rotation, Vector3 velocity, Vector3 rotationalvelocity, byte state, UUID AssetId, UUID owner, int attachPoint)
502 {
503 throw new System.NotImplementedException();
504 }
505
506 public void SendInventoryFolderDetails(UUID ownerID, UUID folderID, List<InventoryItemBase> items, List<InventoryFolderBase> folders, bool fetchFolders, bool fetchItems)
507 {
508 throw new System.NotImplementedException();
509 }
510
511 public void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item)
512 {
513 throw new System.NotImplementedException();
514 }
515
516 public void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId)
517 {
518 throw new System.NotImplementedException();
519 }
520
521 public void SendRemoveInventoryItem(UUID itemID)
522 {
523 throw new System.NotImplementedException();
524 }
525
526 public void SendTakeControls(int controls, bool passToAgent, bool TakeControls)
527 {
528 throw new System.NotImplementedException();
529 }
530
531 public void SendTaskInventory(UUID taskID, short serial, byte[] fileName)
532 {
533 throw new System.NotImplementedException();
534 }
535
536 public void SendBulkUpdateInventory(InventoryNodeBase node)
537 {
538 throw new System.NotImplementedException();
539 }
540
541 public void SendXferPacket(ulong xferID, uint packet, byte[] data)
542 {
543 throw new System.NotImplementedException();
544 }
545
546 public void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit, int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor, int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay, int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent)
547 {
548 throw new System.NotImplementedException();
549 }
550
551 public void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data)
552 {
553 throw new System.NotImplementedException();
554 }
555
556 public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
557 {
558 throw new System.NotImplementedException();
559 }
560
561 public void SendPreLoadSound(UUID objectID, UUID ownerID, UUID soundID)
562 {
563 throw new System.NotImplementedException();
564 }
565
566 public void SendPlayAttachedSound(UUID soundID, UUID objectID, UUID ownerID, float gain, byte flags)
567 {
568 throw new System.NotImplementedException();
569 }
570
571 public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain)
572 {
573 throw new System.NotImplementedException();
574 }
575
576 public void SendAttachedSoundGainChange(UUID objectID, float gain)
577 {
578 throw new System.NotImplementedException();
579 }
580
581 public void SendNameReply(UUID profileId, string firstname, string lastname)
582 {
583 throw new System.NotImplementedException();
584 }
585
586 public void SendAlertMessage(string message)
587 {
588 throw new System.NotImplementedException();
589 }
590
591 public void SendAgentAlertMessage(string message, bool modal)
592 {
593 throw new System.NotImplementedException();
594 }
595
596 public void SendLoadURL(string objectname, UUID objectID, UUID ownerID, bool groupOwned, string message, string url)
597 {
598 throw new System.NotImplementedException();
599 }
600
601 public void SendDialog(string objectname, UUID objectID, UUID ownerID, string msg, UUID textureID, int ch, string[] buttonlabels)
602 {
603 throw new System.NotImplementedException();
604 }
605
606 public bool AddMoney(int debit)
607 {
608 throw new System.NotImplementedException();
609 }
610
611 public void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition)
612 {
613 throw new System.NotImplementedException();
614 }
615
616 public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks)
617 {
618 throw new System.NotImplementedException();
619 }
620
621 public void SendViewerTime(int phase)
622 {
623 throw new System.NotImplementedException();
624 }
625
626 public UUID GetDefaultAnimation(string name)
627 {
628 throw new System.NotImplementedException();
629 }
630
631 public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, byte[] charterMember, string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL, UUID partnerID)
632 {
633 throw new System.NotImplementedException();
634 }
635
636 public void SendScriptQuestion(UUID taskID, string taskName, string ownerName, UUID itemID, int question)
637 {
638 throw new System.NotImplementedException();
639 }
640
641 public void SendHealth(float health)
642 {
643 throw new System.NotImplementedException();
644 }
645
646 public void SendEstateManagersList(UUID invoice, UUID[] EstateManagers, uint estateID)
647 {
648 throw new System.NotImplementedException();
649 }
650
651 public void SendBannedUserList(UUID invoice, EstateBan[] banlist, uint estateID)
652 {
653 throw new System.NotImplementedException();
654 }
655
656 public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args)
657 {
658 throw new System.NotImplementedException();
659 }
660
661 public void SendEstateCovenantInformation(UUID covenant)
662 {
663 throw new System.NotImplementedException();
664 }
665
666 public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner)
667 {
668 throw new System.NotImplementedException();
669 }
670
671 public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
672 {
673 throw new System.NotImplementedException();
674 }
675
676 public void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID)
677 {
678 throw new System.NotImplementedException();
679 }
680
681 public void SendForceClientSelectObjects(List<uint> objectIDs)
682 {
683 throw new System.NotImplementedException();
684 }
685
686 public void SendLandObjectOwners(LandData land, List<UUID> groups, Dictionary<UUID, int> ownersAndCount)
687 {
688 throw new System.NotImplementedException();
689 }
690
691 public void SendLandParcelOverlay(byte[] data, int sequence_id)
692 {
693 throw new System.NotImplementedException();
694 }
695
696 public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
697 {
698 throw new System.NotImplementedException();
699 }
700
701 public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID, byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight, byte mediaLoop)
702 {
703 throw new System.NotImplementedException();
704 }
705
706 public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID)
707 {
708 throw new System.NotImplementedException();
709 }
710
711 public void SendConfirmXfer(ulong xferID, uint PacketID)
712 {
713 throw new System.NotImplementedException();
714 }
715
716 public void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName)
717 {
718 throw new System.NotImplementedException();
719 }
720
721 public void SendInitiateDownload(string simFileName, string clientFileName)
722 {
723 throw new System.NotImplementedException();
724 }
725
726 public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
727 {
728 throw new System.NotImplementedException();
729 }
730
731 public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData)
732 {
733 throw new System.NotImplementedException();
734 }
735
736 public void SendImageNotFound(UUID imageid)
737 {
738 throw new System.NotImplementedException();
739 }
740
741 public void SendShutdownConnectionNotice()
742 {
743 throw new System.NotImplementedException();
744 }
745
746 public void SendSimStats(SimStats stats)
747 {
748 throw new System.NotImplementedException();
749 }
750
751 public void SendObjectPropertiesFamilyData(uint RequestFlags, UUID ObjectUUID, UUID OwnerID, UUID GroupID, uint BaseMask, uint OwnerMask, uint GroupMask, uint EveryoneMask, uint NextOwnerMask, int OwnershipCost, byte SaleType, int SalePrice, uint Category, UUID LastOwnerID, string ObjectName, string Description)
752 {
753 throw new System.NotImplementedException();
754 }
755
756 public void SendObjectPropertiesReply(UUID ItemID, ulong CreationDate, UUID CreatorUUID, UUID FolderUUID, UUID FromTaskUUID, UUID GroupUUID, short InventorySerial, UUID LastOwnerUUID, UUID ObjectUUID, UUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName, string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask, uint BaseMask, byte saleType, int salePrice)
757 {
758 throw new System.NotImplementedException();
759 }
760
761 public void SendAgentOffline(UUID[] agentIDs)
762 {
763 throw new System.NotImplementedException();
764 }
765
766 public void SendAgentOnline(UUID[] agentIDs)
767 {
768 throw new System.NotImplementedException();
769 }
770
771 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
772 {
773 throw new System.NotImplementedException();
774 }
775
776 public void SendAdminResponse(UUID Token, uint AdminLevel)
777 {
778 throw new System.NotImplementedException();
779 }
780
781 public void SendGroupMembership(GroupMembershipData[] GroupMembership)
782 {
783 throw new System.NotImplementedException();
784 }
785
786 public void SendGroupNameReply(UUID groupLLUID, string GroupName)
787 {
788 throw new System.NotImplementedException();
789 }
790
791 public void SendJoinGroupReply(UUID groupID, bool success)
792 {
793 throw new System.NotImplementedException();
794 }
795
796 public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool success)
797 {
798 throw new System.NotImplementedException();
799 }
800
801 public void SendLeaveGroupReply(UUID groupID, bool success)
802 {
803 throw new System.NotImplementedException();
804 }
805
806 public void SendCreateGroupReply(UUID groupID, bool success, string message)
807 {
808 throw new System.NotImplementedException();
809 }
810
811 public void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia)
812 {
813 throw new System.NotImplementedException();
814 }
815
816 public void SendScriptRunningReply(UUID objectID, UUID itemID, bool running)
817 {
818 throw new System.NotImplementedException();
819 }
820
821 public void SendAsset(AssetRequestToClient req)
822 {
823 throw new System.NotImplementedException();
824 }
825
826 public void SendTexture(AssetBase TextureAsset)
827 {
828 throw new System.NotImplementedException();
829 }
830
831 public byte[] GetThrottlesPacked(float multiplier)
832 {
833 throw new System.NotImplementedException();
834 }
835
836 public event ViewerEffectEventHandler OnViewerEffect;
837 public event Action<IClientAPI> OnLogout;
838 public event Action<IClientAPI> OnConnectionClosed;
839 public void SendBlueBoxMessage(UUID FromAvatarID, string FromAvatarName, string Message)
840 {
841 throw new System.NotImplementedException();
842 }
843
844 public void SendLogoutPacket()
845 {
846 throw new System.NotImplementedException();
847 }
848
849 public ClientInfo GetClientInfo()
850 {
851 throw new System.NotImplementedException();
852 }
853
854 public void SetClientInfo(ClientInfo info)
855 {
856 throw new System.NotImplementedException();
857 }
858
859 public void SetClientOption(string option, string value)
860 {
861 throw new System.NotImplementedException();
862 }
863
864 public string GetClientOption(string option)
865 {
866 throw new System.NotImplementedException();
867 }
868
869 public void Terminate()
870 {
871 throw new System.NotImplementedException();
872 }
873
874 public void SendSetFollowCamProperties(UUID objectID, SortedDictionary<int, float> parameters)
875 {
876 throw new System.NotImplementedException();
877 }
878
879 public void SendClearFollowCamProperties(UUID objectID)
880 {
881 throw new System.NotImplementedException();
882 }
883
884 public void SendRegionHandle(UUID regoinID, ulong handle)
885 {
886 throw new System.NotImplementedException();
887 }
888
889 public void SendParcelInfo(RegionInfo info, LandData land, UUID parcelID, uint x, uint y)
890 {
891 throw new System.NotImplementedException();
892 }
893
894 public void SendScriptTeleportRequest(string objName, string simName, Vector3 pos, Vector3 lookAt)
895 {
896 throw new System.NotImplementedException();
897 }
898
899 public void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data)
900 {
901 throw new System.NotImplementedException();
902 }
903
904 public void SendDirPeopleReply(UUID queryID, DirPeopleReplyData[] data)
905 {
906 throw new System.NotImplementedException();
907 }
908
909 public void SendDirEventsReply(UUID queryID, DirEventsReplyData[] data)
910 {
911 throw new System.NotImplementedException();
912 }
913
914 public void SendDirGroupsReply(UUID queryID, DirGroupsReplyData[] data)
915 {
916 throw new System.NotImplementedException();
917 }
918
919 public void SendDirClassifiedReply(UUID queryID, DirClassifiedReplyData[] data)
920 {
921 throw new System.NotImplementedException();
922 }
923
924 public void SendDirLandReply(UUID queryID, DirLandReplyData[] data)
925 {
926 throw new System.NotImplementedException();
927 }
928
929 public void SendDirPopularReply(UUID queryID, DirPopularReplyData[] data)
930 {
931 throw new System.NotImplementedException();
932 }
933
934 public void SendEventInfoReply(EventData info)
935 {
936 throw new System.NotImplementedException();
937 }
938
939 public void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags)
940 {
941 throw new System.NotImplementedException();
942 }
943
944 public void SendAvatarGroupsReply(UUID avatarID, GroupMembershipData[] data)
945 {
946 throw new System.NotImplementedException();
947 }
948
949 public void SendOfferCallingCard(UUID srcID, UUID transactionID)
950 {
951 throw new System.NotImplementedException();
952 }
953
954 public void SendAcceptCallingCard(UUID transactionID)
955 {
956 throw new System.NotImplementedException();
957 }
958
959 public void SendDeclineCallingCard(UUID transactionID)
960 {
961 throw new System.NotImplementedException();
962 }
963
964 public void SendTerminateFriend(UUID exFriendID)
965 {
966 throw new System.NotImplementedException();
967 }
968
969 public void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name)
970 {
971 throw new System.NotImplementedException();
972 }
973
974 public void SendClassifiedInfoReply(UUID classifiedID, UUID creatorID, uint creationDate, uint expirationDate, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, string simName, Vector3 globalPos, string parcelName, byte classifiedFlags, int price)
975 {
976 throw new System.NotImplementedException();
977 }
978
979 public void SendAgentDropGroup(UUID groupID)
980 {
981 throw new System.NotImplementedException();
982 }
983
984 public void SendAvatarNotesReply(UUID targetID, string text)
985 {
986 throw new System.NotImplementedException();
987 }
988
989 public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks)
990 {
991 throw new System.NotImplementedException();
992 }
993
994 public void SendPickInfoReply(UUID pickID, UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled)
995 {
996 throw new System.NotImplementedException();
997 }
998
999 public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds)
1000 {
1001 throw new System.NotImplementedException();
1002 }
1003
1004 public void SendParcelDwellReply(int localID, UUID parcelID, float dwell)
1005 {
1006 throw new System.NotImplementedException();
1007 }
1008
1009 public void SendUserInfoReply(bool imViaEmail, bool visible, string email)
1010 {
1011 throw new System.NotImplementedException();
1012 }
1013
1014 public void SendUseCachedMuteList()
1015 {
1016 throw new System.NotImplementedException();
1017 }
1018
1019 public void SendMuteListUpdate(string filename)
1020 {
1021 throw new System.NotImplementedException();
1022 }
1023
1024 public void KillEndDone()
1025 {
1026 throw new System.NotImplementedException();
1027 }
1028
1029 public bool AddGenericPacketHandler(string MethodName, GenericMessage handler)
1030 {
1031 throw new System.NotImplementedException();
1032 }
1033
1034 #endregion
1035 }
1036}
diff --git a/OpenSim/Client/VWoHTTP/VWoHTTPModule.cs b/OpenSim/Client/VWoHTTP/VWoHTTPModule.cs
new file mode 100644
index 0000000..b326122
--- /dev/null
+++ b/OpenSim/Client/VWoHTTP/VWoHTTPModule.cs
@@ -0,0 +1,69 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using Nini.Config;
5using OpenMetaverse;
6using OpenSim.Client.VWoHTTP.ClientStack;
7using OpenSim.Framework.Servers;
8using OpenSim.Framework.Servers.Interfaces;
9using OpenSim.Region.Framework.Interfaces;
10using OpenSim.Region.Framework.Scenes;
11
12namespace OpenSim.Client.VWoHTTP
13{
14 class VWoHTTPModule : IRegionModule, IHttpAgentHandler
15 {
16
17 private IHttpServer m_httpd;
18
19 private readonly List<Scene> m_scenes = new List<Scene>();
20
21 private Dictionary<UUID, VWHClientView> m_clients = new Dictionary<UUID, VWHClientView>();
22
23 #region Implementation of IRegionModule
24
25 public void Initialise(Scene scene, IConfigSource source)
26 {
27 m_scenes.Add(scene);
28
29 m_httpd = scene.CommsManager.HttpServer;
30 }
31
32 public void PostInitialise()
33 {
34 m_httpd.AddAgentHandler("vwohttp", this);
35 }
36
37 public void Close()
38 {
39 m_httpd.RemoveAgentHandler("vwohttp", this);
40 }
41
42 public string Name
43 {
44 get { return "VWoHTTP ClientStack"; }
45 }
46
47 public bool IsSharedModule
48 {
49 get { return true; }
50 }
51
52 #endregion
53
54 #region Implementation of IHttpAgentHandler
55
56 public bool Handle(OSHttpRequest req, OSHttpResponse resp)
57 {
58
59 return false;
60 }
61
62 public bool Match(OSHttpRequest req, OSHttpResponse resp)
63 {
64 return req.Url.ToString().Contains("vwohttp");
65 }
66
67 #endregion
68 }
69}