SimpleW.Engine.Ioxide 26.1.0-alpha.20260717-2001

This is a prerelease version of SimpleW.Engine.Ioxide.
dotnet add package SimpleW.Engine.Ioxide --version 26.1.0-alpha.20260717-2001
                    
NuGet\Install-Package SimpleW.Engine.Ioxide -Version 26.1.0-alpha.20260717-2001
                    
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="SimpleW.Engine.Ioxide" Version="26.1.0-alpha.20260717-2001" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleW.Engine.Ioxide" Version="26.1.0-alpha.20260717-2001" />
                    
Directory.Packages.props
<PackageReference Include="SimpleW.Engine.Ioxide" />
                    
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 SimpleW.Engine.Ioxide --version 26.1.0-alpha.20260717-2001
                    
#r "nuget: SimpleW.Engine.Ioxide, 26.1.0-alpha.20260717-2001"
                    
#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 SimpleW.Engine.Ioxide@26.1.0-alpha.20260717-2001
                    
#: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=SimpleW.Engine.Ioxide&version=26.1.0-alpha.20260717-2001&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SimpleW.Engine.Ioxide&version=26.1.0-alpha.20260717-2001&prerelease
                    
Install as a Cake Tool

SimpleW.Engine.Ioxide

website

NuGet Package NuGet Downloads License <br/> Linux MacOS Windows (Visual Studio)

Features

SimpleW.Engine.Ioxide replaces the default SimpleW socket engine with an ioxide transport. ioxide is an io_uring runtime for .NET, see https://mda2av.github.io/ioxide/ if you want to know more.

It lets you:

  • run SimpleW on top of the ioxide reactor model
  • configure the reactor count, server settings, and test mode through IoxideEngineOptions
  • keep the usual SimpleW routing, modules, handlers, and response APIs
  • serve HTTPS on a dedicated ioxide kTLS port through ioxide.tls.TlsOptions
  • use a transport designed for Linux/io_uring workloads

Getting Started

Minimal engine usage:

using System.Net;
using SimpleW;
using SimpleW.Engine.Ioxide;

namespace Sample {
    class Program {

        static async Task Main() {

            var server = new SimpleWServer(IPAddress.Any, 2015);

            server.UseIoxideEngine(config => {
                config.ServerConfig = config.ServerConfig with {
                    ReactorCount = Environment.ProcessorCount
                };
                return config;
            });

            server.MapGet("/api/test", () => {
                return new { message = "Hello World !" };
            });

            await server.RunAsync();
        }
    }

}

SSL/TLS support

SimpleW.Engine.Ioxide implements the ioxide kTLS path from ioxide.tls. Configure TlsPort and the native ioxide.tls.TlsOptions; the engine adds that port to ServerConfig.ExtraPorts, starts TlsService once per reactor, runs AcceptAsync for TLS connections, feeds decrypted request bytes into the normal SimpleW pipeline, and keeps response writes as plaintext so kernel TLS encrypts them.

using System.Net;
using SimpleW;
using SimpleW.Engine.Ioxide;
using ioxide.tls;

var server = new SimpleWServer(IPAddress.Any, 8080);

server.UseIoxideEngine(config => {
    config.ServerConfig = config.ServerConfig with {
        ReactorCount = Environment.ProcessorCount
    };

    config.TlsPort = 8443;
    config.Tls = new TlsOptions {
        CertificatePath = "/certs/server.crt", // PEM chain
        KeyPath = "/certs/server.key",         // PEM private key
        Alpn = "http/1.1"
    };

    return config;
});

server.MapGet("/", () => new { message = "Hello from SimpleW over ioxide kTLS" });

await server.RunAsync();

With this configuration:

  • http://*:8080 remains the plaintext listener.
  • https://*:8443 is served by the ioxide kTLS listener.
  • SimpleW handlers, routing, modules, responses, and deferred flush behavior stay the same.
  • session.IsSsl is true for requests accepted on the TLS port.

The kTLS path intentionally uses PEM paths instead of SslContext, because ioxide.tls needs the certificate chain and private key as files when TlsService starts. It also has the ioxide constraints: TLS 1.3, OpenSSL 3, Linux tls kernel module, no session resumption, and kernel transmit encryption.

What the engine wires internally

The engine performs the same steps as the raw ioxide example:

// simplified internal shape
TlsService.Start(reactor, tlsOptions);

if (conn.ListenerPort == config.TlsPort) {
    TlsSession tlsSession = await reactor.GetService<TlsService>().AcceptAsync(conn);
    await server.CreateSessionAsync(new IoxideTlsConnection(conn, tlsSession, endpoint));
}

IoxideTlsConnection drains plaintext produced during the handshake with DrainPlaintext(), decrypts inbound slices with TlsSession.Decrypt(...), and writes responses with conn.Write(...) / conn.FlushAsync(). Those writes are plaintext from SimpleW's point of view; kTLS emits TLS records on the socket.

About SslContext

SslContext is not the kTLS configuration surface. It maps naturally to the slower portable SslStream + ConnectionStream path, but the implemented ioxide fast path uses the native TlsOptions plus TlsPort, because kTLS needs CertificatePath, KeyPath, Alpn, and a dedicated listener port.

Documentation

To check out docs, visit simplew.net.

Changelog

Detailed changes for each release are documented in the CHANGELOG.

This package also keeps a local changelog.

Contribution

Feel free to report issue.

License

This library is under the MIT License.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.1.0-alpha.20260717-2001 52 7/17/2026
26.1.0-alpha.20260714-1987 53 7/14/2026
26.1.0-alpha.20260712-1978 54 7/12/2026
26.1.0-alpha.20260712-1976 57 7/12/2026
26.1.0-alpha.20260712-1975 54 7/12/2026