Giter VIP home page Giter VIP logo

msquic.net's Introduction

MsQuic.Net

Stirling Labs' .Net wrapper for MsQuic

๐Ÿš€ How to install

Most people should just use the NuGet package.

> dotnet add PROJECT package StirlingLabs.MsQuic
> dotnet restore # to download and apply the native bindings for your platform

If know what you're doing and want to run our in-development GitHub CI builds, configure GitHub Packages for Stirling Labs and restore.

๐Ÿ‘€ What's included

MsQuic.Net solves our requirements for cross-platform datagrams and Quic access by wrapping MsQuic and using portable certificates (i.e. QuicTLS/OpenSSL) and our portable sockets implementation.

๐Ÿฃ Lifecycle

  • PRs that further the project's goals are encouraged!
  • The intent is to support the current MsQuic release.
  • All native binaries are built by Microsoft and packaged into NuPkg by our CI.
  • Release versions of MsQuic.Net follow our internal numbering system, while the native bindings naturally follow Microsoft's release numbering.

Developed by Stirling Labs.

msquic.net's People

Contributors

dependabot[bot] avatar rjvs avatar tyoungsl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

wegylexy pveteam

msquic.net's Issues

Can't use NuGet package on OSX arm64

Hi there, I'm trying to use the NuGet package but I'm getting this error:

System.TypeInitializationException: "The type initializer for 'StirlingLabs.MsQuic.QuicRegistration' threw an exception." --->
System.TypeInitializationException: "The type initializer for 'StirlingLabs.MsQuic.Bindings.MsQuic' threw an exception." --->
System.DllNotFoundException: "Missing MsQuic native library."
  at at StirlingLabs.MsQuic.Bindings.MsQuic..cctor()
  --- End of inner exception stack trace ---
  at at StirlingLabs.MsQuic.Bindings.MsQuic.Init()\n   at StirlingLabs.MsQuic.QuicRegistration..cctor()
  --- End of inner exception stack trace ---
  at StirlingLabs.MsQuic.QuicRegistration..ctor(String name)\n   at Program.<<Main>$>d__0.MoveNext() in

By looking at the StirlingLabs.MsQuic.Bindings.osx/osx.csproj file, it mentions the bindings are specific to x86

If possible could you guide me on how I could build this project for arm64?
Thank you!

NuGet packages don't have tags and rider refuses to install them

Hey, so while attempting to install the NuGet packages in my project I got the following error:

Could not install package 'StirlingLabs.MsQuic.Bindings.runtime.linux-x64.openssl 2.1.8'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

judging by the error, I'd say that those packages refuse to install due to them not having proper tags, here is a list of packages with that issue:

Another issue for OnShutdown event

I get this issue (but no pdb was found, tho):

System.InvalidCastException: 'Unable to cast object of type 'System.Delegate[]' to type 'StirlingLabs.Utilities.EventHandler`4[StirlingLabs.MsQuic.QuicPeerConnection,System.UInt64,System.Boolean,System.Boolean][]'.'

Sample code:

connection.ConnectionShutdown += delegate(QuicPeerConnection sender, ulong arg1, bool b, bool arg3)
{
    Console.WriteLine("Connection is shutting down");
};

So sorry 'bout this gents.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.