does any body know how to implement the WebRTC DataChannel API to Windows applications builded in C# to send TCP messages between clients behind NATs. This is not for a web application, it is Windows based only.
Any inputs or ideas are greatly appreciated.
Thanks.
To close an RTCDataChannel, you call close() - this can be called on an RTCPeerConnection as well, which will close all datachannels created on the peerconnection.
This is done by calling createDataChannel() on a RTCPeerConnection object, which returns a RTCDataChannel object. const peerConnection = new RTCPeerConnection(configuration); const dataChannel = peerConnection. createDataChannel();
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 channel An information route and associated circuitry that is used for the passing of data between systems or parts of systems. In an interface that has a number of parallel channels the channels are usually separately dedicated to the passing of a single type of information, e.g. data or control information.
There are no .NET implementations of WebRTC. Currently there are only the JavaScript APIs provided by browsers(FireFox, Chrome, etc.) and the Native C++/C API, which can be compiled in windows.
This SO Question may help you import the Native API into .NET but I am not sure if it is possible.
Maybe it is time to start on a .NET wrapper or implementation for WebRTC.
Check out this page: http://opentools.homeip.net/webrtc. It's exactly what your are looking for. WebRTC data stack with c# support and sample app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With