• This repository has been archived on 08/Dec/2021
  • Stars
    star
    184
  • Rank 202,546 (Top 5 %)
  • Language
    C++
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An easy to use WebRTC Datachannels library for .NET applications.

Spitfire

Installing

For projects targeting x64

Install-Package Spitfirex64

For projects targeting x86

Install-Package Spitfirex86

To install the utilities

Install-Package SpitfireUtils

What is this?

Spitfire is a wrapper around the WebRTC native code that allows .NET applications to take advantage of data channels. The goal of this is to allow people to build awesome P2P applications and to make it easier to use WebRTC in a server-like fashion.

What is a data channel?

A WebRTC data channel lets you send text or binary data over an active connection to a peer. In the context of a game, this lets players send data to each other, whether text chat or game status information. Data channels come in two flavors.

Reliable channels guarantee that messages you send arrive at the other peer and in the same order in which they're sent. This is analogous to a TCP socket.

Unreliable channels make no such guarantees; messages aren't guaranteed to arrive in any particular order and, in fact, aren't guaranteed to arrive at all. This is analogous to a UDP socket.

For a quick reminder on the differences between UDP and TCP, look here

What about audio/video?

This library does not currently support audio and video, however if there is enough demand we may consider adding it. To ensure this code runs in all environments we implement fake audio/video devices during initialization.

Size limitations

Data channels only support sending tiny fragments of data, while it is possible to send complete files through it, they must first be chunked. We provide some functions that will allow you to do this quickly without unnecessary copying in DataChannelUtils. It is recommended you chunk all messages larger than 10KB to avoid hitting the 16 KB limit.

Signaling

Signaling is the process of coordinating communication. In order for a WebRTC application to set up a data channel, its clients need to exchange information. Spitfire does not currently provide a signaling server, however this isn't a complex process and you can find more information on it here.

Messaging

If you're looking to maximize speed for your application, we recommend pairing Spitfire with Sachiel, our fast network messaging framework.

Contributing & Building

If you wish to contribute documentation, code examples or fixes we are more than happy to accept pull request.

To build the C++, you can find the precompiled WebRTC libraries on the release page here. Building WebRTC itself can be quite the headache so we provide scripts for that as well located here.

More Repositories

1

bebop

An extremely simple, fast, efficient, cross-platform serialization format
C#
692
star
2

warden

Warden.NET is an easy to use process management library for keeping track of processes on Windows.
C#
346
star
3

sachiel-net

A simple to use messaging framework built on protocol buffers.
C#
78
star
4

MetaPod

A cross-platform library for creating digitally signed portable executables with custom metadata.
Go
43
star
5

flutter_gamepad

A gamepad library for Flutter
Kotlin
33
star
6

bug-tracker

Report all issues found with Rainway here, or make suggestions for new features. 🐜
27
star
7

dot-env-generator

A source generator for C# that turns .env files into runtime constants.
C#
27
star
8

Forecast

A cross-platform utility for testing HTTP and WebSocket server connectivity.
C#
26
star
9

flutter_home_indicator

Flutter plugin to show/hide the iPhone X home indicator.
Swift
15
star
10

rainway-sdk-csharp-examples

Various examples of how to use the Rainway SDK with .NET
C#
12
star
11

rainway-sdk-web-demo

Various examples of how to use the Rainway SDK within the Browser
TypeScript
12
star
12

translations

Repository of language files for various Rainway user interfaces.
Python
10
star
13

low-level-homework

Homework for SDK developer applicants and other low level positions.
9
star
14

webrtc-build-scripts

A collection of scripts to build WebRTC on multiple platforms [WIP]
PowerShell
8
star
15

node-clangffi

Generate Typescript FFI bindings for C/C++ libraries using libclang and ffi-napi.
TypeScript
7
star
16

buffer-io

An intuitive library for reading and writing binary buffers
Rust
5
star
17

vscode-bebop

TypeScript
3
star
18

RainwayWebRTC

build output of our webrtc_ios fork
Objective-C
3
star
19

feature_detect

Flutter feature/UI mode detection plugin for Android.
Dart
2
star
20

proto-compiler

Utility to dedupe and merge protobuf schemas.
TypeScript
2
star
21

API-homework

Homework for API developer applicants.
2
star
22

rainway-sdk-native-examples

Various examples of how to use the Rainway SDK with C/C++
C++
2
star
23

web-homework

Homework assignment for web developer applicants.
Python
2
star
24

rainway-doc-format

Rainway documentation formatter. πŸ“ƒπŸ”
TypeScript
2
star
25

rainway-sdk-echo-demo

C#
2
star
26

file-content-replacer

Github action to set the Assembly Version value in a csproj file
JavaScript
1
star
27

rainway-sdk-cxx-demo

C++ demo project for the Rainway SDK
C++
1
star