Commit Graph

204 Commits

Author SHA1 Message Date
John Hurliman
31503a5ef5 Fixed Utils.UnixTimeToDateTime() when an int is passed in instead of a uint
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2407 52acb1d6-8a22-11de-b505-999d5b087335
2009-01-07 22:35:58 +00:00
3444200bc1 * Fixed a null reference exception in ObjectManager where prim Properties was null while calling .Properties.SetFamilyProperties, and a related problem in TestClient. Also fixed a null reference exception in sculpt data for ExportCommand.cs
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2403 52acb1d6-8a22-11de-b505-999d5b087335
2009-01-05 18:01:37 +00:00
e9ca2fef01 * Fixed some null reference exceptions in Primitive OSD de/serialization
* Changed RequestRezFromInventory to accept the InventoryItem base type and allow rezzing of InventoryAttachments (non-breaking change)
* Implemented OnLogin event for LoginStatus.ConnectingToLogin
* Added public LogText() method to LocalChat GUI element


git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2402 52acb1d6-8a22-11de-b505-999d5b087335
2009-01-02 21:25:21 +00:00
John Hurliman
364c2c26d9 * Moved all capabilities code to the new library, OpenMetaverse.Http
* OpenMetaverse.Http contains a CAPS client + server, event queue client + server, SSL certificate generation (root CA, server certs, client certs), and client certificate authentication
* HttpServer.dll and Mono.Security.dll are new dependencies for OpenMetaverse.Http.dll

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2400 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-29 20:44:28 +00:00
a37f43e09f Re-added Vector3.Mag (where did it go anyway?)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2396 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-21 22:56:27 +00:00
John Hurliman
1df78cb074 * Split up asset store and transfer manager in Simian into two extensions
* Added PeriscopeTransferManager to handle animation and sound transfers
* Misc. transfer bugfixes in libomv
* Misc. improvement to TexturePipeline and some numbers tweaking
* Attempted to pass object touch events through to foreign grid in Periscope, may not be working
* Added new chat commands in Periscope

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2385 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-19 03:39:29 +00:00
John Hurliman
344d327a15 * Removed all strings from _Packets_.cs, including warning messages for null arrays and Packet.ToString(). GridProxy needs a new Packet.ToString() method that uses reflection now
* Fixed foliage decoding and removed OnNewFoliage in favor of OnNewPrim only
* Flexi, light, sculpt, and object properties (all inside of Primitive) are now classes that can be null instead of structs
* Added Primitive.GetExtraParamsBytes()
* Massive improvements to Simian and periscope

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2384 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-18 21:45:38 +00:00
John Hurliman
194752abc1 * Moved TexturePipeline into libOpenMetaverse (still needs to be instantiated separately)
* Moved TextureCache into its own file
* New version of Periscope, major improvements. Check the Simian.ini file for usage, and change the const values in Periscope.cs
* Lots of miscellaneous cleanups and improvements in Simian

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2383 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-17 03:49:42 +00:00
John Hurliman
ee6211550e * Initial commit of Periscope, an experimental Simian plugin that uses a libomv bot to proxy a foreign simulator
* Small cleanups and bugfixes in Simian

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2382 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-16 08:43:27 +00:00
John Hurliman
94ea54bed6 * Changed EventQueueServer to always obey the KeepAlive setting requested by the client
* Added (very slow, O(n)) DoubleDictionary.Remove(TKey1) and DoubleDictionary.Remove(TKey2) functions

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2381 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-15 21:05:50 +00:00
John Hurliman
7f8cffafd2 * Moved BlockingQueue, DoubleDictionary, and ExpiringCache into OpenMetaverseTypes.dll
* First attempt at an EventQueueServer implementation, untested
* Implemented a capabilities server that can route capabilities to local callbacks or remote URIs
* Modified HttpServer.HttpRequestCallback to return a bool: true to close the connection, false to leave it open
* Removed all locks from HttpServer and added try/catch around HttpListenerContext operations
* Added Color4.FromHSV()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2379 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-15 19:13:24 +00:00
Latif Khalifa
674d4ea653 Allow setting appearance to continue even dispate some textures failing to bake properly [LIBOMV-420] - Patch by Robin Cornelius
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2378 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-14 02:01:21 +00:00
John Hurliman
a5ede98e87 * Added more DateTime/string/integer/float conversion methods for OSD types
* Slight fix to default output for login response serialization

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2377 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-11 01:36:47 +00:00
John Hurliman
66669a773c * Added method to serialize OSD to a JsonWriter
* Added more OSD.As*() functions to match the OSD.From*() functions
* Added more Utils.BytesTo*() functions

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2376 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-10 02:54:50 +00:00
John Hurliman
4b1f441574 * Sanity check in DeserializeLLSDXml() to return an empty LLSD block instead of throwing an exception
* Removing redundant code from OpenMetaverse.Utilities
* Using System.Diagnostics.StopWatch instead of Environment.TickCount for rate limiting, and speeding up packet sending from 75ms gaps to 10ms (might be slightly too fast, but it works for me)
* Cleaning up the logic a big in RequestAllSimParcels()
* Try/catch block in GridProxy around packet delegates

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2371 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-05 01:34:24 +00:00
John Hurliman
dd408d38fb * Fixed JSON->OSD deserialization error on empty strings
* Fixed exception strings in OpenJPEG.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2369 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-01 23:58:45 +00:00
Jim Radford
c768eef6cc Removing Serializable attribute from ParcelInfo struct (was accidentally comitted previously and is unnnecessary)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2368 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-01 21:18:34 +00:00
Jim Radford
f9701dcbd7 Adds check/warning for GetParcelLocalID method if ParcelMap/Dictionary has not been previously populated
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2367 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-01 21:13:24 +00:00
John Hurliman
57704143e4 * Added locking to OpenJPEG encoding and decoding
* Better log output when OpenJPEG sanity check fails

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2364 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-24 22:10:26 +00:00
John Hurliman
c4bcb8e2bc Added more sanity checking to JPEG2000 layer boundary decoding
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2362 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-18 19:13:25 +00:00
John Hurliman
5fbcd0c4d6 * Moved OpenMetaverse.StructuredData to a separate library
* Added experimental JSON serialization/deserialization to OSD using LitJSON (works, but subject to change soon)
* Moved packet handling code out of Simian.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2361 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-18 03:16:38 +00:00
John Hurliman
8e84377b22 * Removing EnUsCulture from Helpers as it already exists in Utils
* Removing Helpers.NewLine as it already exists in Environment.NewLine

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2360 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-17 23:37:02 +00:00
John Hurliman
aede2ea203 * Adding Packet.BuildPacket() function back, OpenSim uses it
* Converted ParcelAccessEntry.Flags to AccessList enum

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2359 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-17 20:29:13 +00:00
John Hurliman
f11dd21677 * Forced struct alignment to 4-bytes for openjpeg-dotnet on Windows
* Removed padding hack from openjpeg
* Added sanity check to Simian when copying texture data
* Ignore common unused login parameters in Simian

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2357 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-17 19:08:50 +00:00
John Hurliman
7792f4f6d5 Migrating to external ExtensionLoader project at http://code.google.com/p/extensionloader/ (temporarily breaking the build)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2355 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-17 18:01:46 +00:00
John Hurliman
9d80aaae54 Added an attempted fix to keep out of order Xfer packets from killing the transfer
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2350 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-11 23:55:33 +00:00
John Hurliman
5376dcdb17 Fixing endianness bug in xfer downloads
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2349 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-11 23:07:43 +00:00
John Hurliman
2e2eb76f65 Added a debugging line for Xfer downloads
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2348 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-11 22:28:36 +00:00
John Hurliman
932306aba9 Added a param to AssetManager.RequestAssetXfer() that specifies if LLPath.Cache (4) or LLPath.Unknown (0) should be used in the request
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2347 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-11 22:20:50 +00:00
John Hurliman
0317e6a35f Reverting [LIBOMV-420], OpenSim trunk correctly obeys the 1000 byte packet size so this is unnecessary
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2344 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-10 18:37:25 +00:00
John Hurliman
983f235b3a Applying patch from Anton Lauridsen for [LIBOMV-420] to support texture downloads from simulators that use a non-standard size for transfer packets. Will definitely increase memory usage and fragmentation, but not much can be done until the udp texture transfer protocol goes away entirely
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2343 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-10 18:19:45 +00:00
John Hurliman
99b3b74cd6 * More cleanup to acking and resending in libomv and Simian
* Fixed typo in Simian.ini that was disabling connection management
* Replaced several unnecessary foreach loops in Simian with dictionary lookups
* Simian now uses the last detected system IP address instead of the first

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2342 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-10 18:00:05 +00:00
4055e121a6 Cleaned up previous commit involving profile picks
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2340 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-09 23:59:48 +00:00
Latif Khalifa
285bd80925 Adding functions for updating/creating and deleting profile picks [LIBOMV-421]. Patch by Daten
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2339 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-09 23:52:35 +00:00
69bf9bf5f3 More additions relating to LIBOMV-418
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2338 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-09 20:29:04 +00:00
ae2f5ce1b3 * Implemented LIBOMV-418: Add SetObjectSaleInfo() function to ObjectManager
* Cleaned up locking in KillObjectHandler
* Fixed an xml param name in Simulator.SendPacketUnqueued

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2337 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-09 18:51:38 +00:00
Latif Khalifa
58aa671519 Allow outgoing packet throttling to be disabled. [LIBOMV-417]
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2335 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-09 18:17:36 +00:00
955fc8598b Replaced Console.WriteLine debug message with Logger.Log in AvatarManager.RequestAvatarName()
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2334 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-08 23:10:26 +00:00
John Hurliman
956b2a6b78 * Lots of networking code cleanup, should hopefully resolve [LIBOMV-415] (thank you Teravus!)
* OldestUnacked is now properly set in outgoing pings
* Enable sending pings by default

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2333 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-07 20:28:32 +00:00
John Hurliman
1f527a843b Fixing up Simian's regular expressions to get login working again
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2332 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-07 18:32:45 +00:00
8a597a50e4 Updated some renamed params in the xml docs for AgentManager and Helpers
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2327 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-05 23:12:09 +00:00
c2cb378689 Fix for previous commit addressing LIBOMV-413
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2326 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-05 23:10:43 +00:00
98fe70e09d Addresses LIBOMV-413: RequestGroupRoleMembers does not add to GroupRolesMembersRequests
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2325 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-05 18:43:06 +00:00
John Hurliman
5e91478192 Added sanity check in OSDParser.DeserializeLLSDBinary() to check if the stream is seekable
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2324 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-05 02:00:07 +00:00
John Hurliman
61c8451fac * Allow HttpServer AddHandler() and RemoveHandler() while the server is running
* Simplified HttpServer calback exception handling
* Fixed a recently introduced typo in LLSD binary serialization
* Allow LLSD binary serialization to work with any Stream instead of only MemoryStream
* Improved Utils.HexStringToBytes(), changed function signature
* Added an efficient Utils.EnumTryParse<T>()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2323 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-05 01:50:24 +00:00
John Hurliman
f53aee6fa8 Renaming LLSDParser to OSDParser since it will encompass more than just LLSD parsing in the future
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2322 52acb1d6-8a22-11de-b505-999d5b087335
2008-10-30 16:54:17 +00:00
John Hurliman
bad3108ddf * Renamed LLSD to OSD. The LLSD-specific (de)serialization functions have been renamed to specify they use LLSD. Other serialization formats will be added in the future, along with better native support for vectors and unsigned integers
* Added Utils.SHA1()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2321 52acb1d6-8a22-11de-b505-999d5b087335
2008-10-30 01:50:59 +00:00
John Hurliman
3243e3153d * Added contentType parameter to new HttpListener.AddHandler() overload
* Updated Simian to use the simplified HttpListener.AddHandler() overload

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2317 52acb1d6-8a22-11de-b505-999d5b087335
2008-10-29 20:19:08 +00:00
John Hurliman
dad28f767a * HttpRequestSignature uses regular expressions for the path now
* Added a simplified HttpListener.AddHandler() overload
* Lots of improvements in ExtensionLoader, simplified interface
* Updated Simian to latest ExtensionLoader

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2316 52acb1d6-8a22-11de-b505-999d5b087335
2008-10-29 20:11:28 +00:00
ebaea1009c Resolves LIBOMV-410: Client.Self.Movement.Jump() has no way to stop jumping.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2314 52acb1d6-8a22-11de-b505-999d5b087335
2008-10-28 18:27:19 +00:00