timiskhakov / QuicExample

A minimal client-server setup demonstrating the usage of MsQuic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuicExample

A minimal client-server setup demonstrating the usage of MsQuic.

Requirements

  • Windows 11 22H2 (tested on 22621.1992)
  • OpenSSL (tested on 3.1.0 14)
  • .NET 7 (tested on 7.0.9)

Usage

  1. Generate a certificate for the server:
cd .\QuicExample.Server\
openssl genrsa 2048 > private.key
openssl req -new -x509 -nodes -sha1 -days 1000 -key private.key > public.cer
openssl pkcs12 -export -in public.cer -inkey private.key -out cert_key.p12
  1. Run the server first:
cd .\QuicExample.Server\
dotnet run
  1. Run the server next:
cd .\QuicExample.Client\
dotnet run
  1. Expected results:
  • The server prints Ping
  • The client prints Pong

About

A minimal client-server setup demonstrating the usage of MsQuic


Languages

Language:C# 100.0%