4 ms·
I need it in library form as well. It can get tricky sometimes learning the ins and outs of sockets on various platforms, so it would be great to have C binding
by zackmorris 7y ago
I need it in library form as well. It can get tricky sometimes learning the ins and outs of sockets on various platforms, so it would be great to have C bindings to open the port in a standard cross-platform way. Currently it supports:
https://github.com/txthinking/mr2#download https://github.com/txthinking/mr2#download
Download OS Arch
mr2 Linux amd64
mr2_darwin_amd64 MacOS amd64
mr2_windows_amd64.exe
https://github.com/txthinking/mr2/releases https://github.com/txthinking/mr2/releases
mr2, mr2_darwin_amd64, mr2_freebsd_386, mr2_freebsd_amd64, mr2_linux_386, mr2_linux_arm5, mr2_linux_arm6, mr2_linux_arm64, mr2_linux_arm7, mr2_linux_mips, mr2_linux_mips64, mr2_linux_mips64le, mr2_linux_mipsle, mr2_linux_mipsle_sf, mr2_linux_mips_sf, mr2_linux_ppc64, mr2_linux_ppc64le, mr2_windows_386.exe, mr2_windows_amd64.exe
Also random question, but, does anyone know of a lightweight cross-platform tool to wrap any console executable within a library? Like a mini container or Docker except it would inherit the parent OS so there would be no base platform. The parent application would just see C bindings to the STDIN/STDOUT/STDERR streams and possibly an array of shared directories/permissions, and/or anything else that a console app typically communicates through. Sorry if this is a dumb question (I've only used Docker and Vagrant for specific use cases and am not an expert on the theory behind containers).