medooze / libdatachannels

Lean and mean WebRTC datachannels C++ library with ad-hoc SCTP stack
MIT License
27 stars 11 forks source link

Example: copy/paste #2

Closed guest271314 closed 2 years ago

guest271314 commented 2 years ago

When you find the time can you kindly create a basic copy/paste example?

murillo128 commented 2 years ago

Unfortunately, the library is not fully operational yet. I plan to start working again on it soon, but don't have an ETA for when it would be functional.

guest271314 commented 2 years ago

This https://github.com/paullouisageneau/libdatachannel works. Just trying to test your gear, which appears to be slightly smaller. I'll check back here periodically.

murillo128 commented 2 years ago

seems it is using usersctp under the hood, which i really want to avoid.

Have you checked Google’s new datachannels lib?

guest271314 commented 2 years ago

I assess data channels as a "black box", unobservable, yet works. My use case is purely local - execute arbitrary shell scripts and programs from the browser and stream stdout to the browser, without writing and files to do so, so it does not really matter how the communication is achieved.

No, I havn't checked out Googles new data channel lib. The last time I checked WebRTC official library was far too immense to download and build (especially on machines where I only run on RAM with minimal disk space). Native Messaging alone and a local server with fetch() work quite well for my use cases https://github.com/guest271314/native-messaging-php.

The purpose of testing data channels is to compare working Native Messaging with C++ (25KB). I really don;t think there is a comparison as to source code necessary capture and stream live audio https://github.com/guest271314/captureSystemAudio/blob/master/native_messaging/capture_system_audio/capture_system_audio.cpp.

guest271314 commented 2 years ago

Have you checked Google’s new datachannels lib?

Link? So that I can find precisely what you are referencing?

murillo128 commented 2 years ago

https://chromium.googlesource.com/external/webrtc/+/master/net/dcsctp

guest271314 commented 2 years ago

Thanks. I'll have to read how to build and use that for testing/comparison.

seems it is using usersctp under the hood, which i really want to avoid.

Why? Less secure? Slower than what you prefer to use? What is novel about Google's new data channel implementation?

Does that make a difference for my use cases (purely local capture of system audio and arbitrary shell script and program execution - that I can then stream using WebRTC in the browser) for data channels?