LibreMetaverse.Transport 3.2.0

Prefix Reserved
dotnet add package LibreMetaverse.Transport --version 3.2.0
                    
NuGet\Install-Package LibreMetaverse.Transport -Version 3.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LibreMetaverse.Transport" Version="3.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LibreMetaverse.Transport" Version="3.2.0" />
                    
Directory.Packages.props
<PackageReference Include="LibreMetaverse.Transport" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LibreMetaverse.Transport --version 3.2.0
                    
#r "nuget: LibreMetaverse.Transport, 3.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LibreMetaverse.Transport@3.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LibreMetaverse.Transport&version=3.2.0
                    
Install as a Cake Addin
#tool nuget:?package=LibreMetaverse.Transport&version=3.2.0
                    
Install as a Cake Tool
▗▖   ▄ ▗▖    ▄▄▄ ▗▞▀▚▖▗▖  ▗▖▗▞▀▚▖   ■  ▗▞▀▜▌▄   ▄ ▗▞▀▚▖ ▄▄▄ ▄▄▄ ▗▞▀▚▖
▐▌   ▄ ▐▌   █    ▐▛▀▀▘▐▛▚▞▜▌▐▛▀▀▘▗▄▟▙▄▖▝▚▄▟▌█   █ ▐▛▀▀▘█   ▀▄▄  ▐▛▀▀▘
▐▌   █ ▐▛▀▚▖█    ▝▚▄▄▖▐▌  ▐▌▝▚▄▄▖  ▐▌        ▀▄▀  ▝▚▄▄▖█   ▄▄▄▀ ▝▚▄▄▖
▐▙▄▄▖█ ▐▙▄▞▘          ▐▌  ▐▌       ▐▌                                
                                   ▐▌                                

LibreMetaverse.Transport

The UDP half of the Second Life circuit, with no client attached: the socket loop, the datagram buffer, the traffic throttle, and a reliable circuit that sequences, acknowledges, resends and de-duplicates packets the way the viewer's own circuit does. It is what a client uses to talk to a simulator, and what a simulator would use to talk to a client.

  Archiving · Utilities · Voice.Vivox · Voice.WebRTC
      │  built on the client
  LibreMetaverse   the client: login, managers, inventory
      │
 [Transport]       UDP socket, reliable circuit, throttle
      │
  Protocol         packets and capability messages
      │
  Assets           the offline data model
      ├── ModelFormats · Rendering.MeshFoundry · Rendering.Simple
      │
  StructuredData · Imaging.Abstractions
      │
  Types            UUID, vectors, quaternions, colors

  on their own: PrimMesher · Imaging.Skia · RLV · LslTools

A name in brackets is this package. Packages use the ones beneath them; the Depends on section below is exact.

What is in it

  • ReliableCircuit: sends packets with sequence numbers, remembers the ones that asked for an acknowledgement, resends them until they are acknowledged or give up, appends acknowledgements to outgoing packets (up to 250 at a time, as the viewer does), and drops a packet it has already seen. It does no I/O of its own: you give it a function that transmits a datagram, and call SendAcks() and ResendUnacked() on your own timer.
  • UDPBase: an abstract socket loop. Subclass it, say what to do with a received or sent packet, and call Start(). Datagrams are received asynchronously and handed to you through a bounded queue, so a slow handler holds the socket back rather than losing packets.
  • UDPPacketBuffer and OutgoingDatagram: a datagram and its bookkeeping (sequence number, resend count, packet type).
  • ThrottleRates: the eight throttle categories (resend, land, wind, cloud, task, texture, asset, total) and their wire form, the bytes of an AgentThrottle packet.
  • IncomingPacketIDCollection: the record of recently received sequence numbers that duplicate detection uses.

Example

using System.Net;
using LibreMetaverse;
using LibreMetaverse.Packets;

var remote = new IPEndPoint(IPAddress.Loopback, 9000);
var circuit = new ReliableCircuit(remote, buffer =>
{
    // write buffer.Data[0..buffer.DataLength] to your socket
});

circuit.SendPacket(new StartPingCheckPacket { PingID = { PingID = 1 } });

// on your timer, a few times a second:
circuit.SendAcks();        // acknowledge what has been received
circuit.ResendUnacked();   // resend what the other end has not acknowledged

Console.WriteLine($"{circuit.UnackedCount} packets waiting for an acknowledgement");

How it is checked

The circuit's behavior was compared with the viewer's own circuit code (the 250-acknowledgement limit, resending the original bytes without acknowledgements, the 255-block limit, and what a ping carries), and its test suite runs it against a real socket. The few places where it knowingly differs are written down in the tests.

Use it when

You are building anything that has a UDP conversation with a grid and wants the reliability layer without the client: a simulator, a protocol test rig, a load generator. The packets themselves come from LibreMetaverse.Protocol.

Depends on

LibreMetaverse.Protocol, LibreMetaverse.Assets and LibreMetaverse.Types, plus System.Threading.Channels, System.Threading.RateLimiting and Microsoft.Extensions.ObjectPool. It targets .NET Standard 2.1, .NET Framework 4.8.1, and .NET 8, 9 and 10.

Install

dotnet add package LibreMetaverse.Transport

More

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net481 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LibreMetaverse.Transport:

Package Downloads
LibreMetaverse

LibreMetaverse is a .NET client library for connecting to and interacting with Second Life, OpenSimulator, and compatible virtual world servers. Provides networking, inventory, avatar, asset, and world management APIs.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.2.0 118 10/13/2026