Re:macOS command-line tools you might not know about
by nine_k on Tuesday June 27, 2023 @10:15AM
(#36493099)
Toxiproxy is such a tool for everywhere else, and it did help me test and improve networking code for poor conditions: timeouts, retries, packet loss, etc.
Re:macOS command-line tools you might not know about
by obituary_latte on Tuesday June 27, 2023 @10:03AM
(#36492924)
Never had heard of this before. Some other cool tools in the "additional tools for X-Code" package which I had also never heard of. https://developer.apple.com/download/all/
Thanks for sharing.
Re:macOS command-line tools you might not know about
by llimllib on Tuesday June 27, 2023 @01:26PM
(#36496034)
I've used AU Lab to pipe my microphone input through my headphones, which is apparently how professionals like to record audio (a "monitor" so you can hear how you sound), but I couldn't get used to it
Re:macOS command-line tools you might not know about
by desro on Wednesday June 28, 2023 @04:39PM
(#36512271)
How was the latency when you last tried it? Most outboard audio interfaces (even inexpensive ones like the Focusrite Scarletts with ≤ 2 inputs) have a "direct monitor" feature that is as close to zero-latency as you can reasonably get.
Re:macOS command-line tools you might not know about
by llimllib on Wednesday June 28, 2023 @08:58PM
(#36514979)
I don’t remember, or have context for how it feels when it’s instant, so I’m a bad tester.
Maybe that’s why I didn’t like it, a tiny bit of latency seems like a killer in that scenario
Re:macOS command-line tools you might not know about
by elpakal on Tuesday June 27, 2023 @09:56AM
(#36492828)
You can do similar magic with Charles Proxy fyi
Re:macOS command-line tools you might not know about
by llarsson on Tuesday June 27, 2023 @10:47AM
(#36493644)
You can be an ultra nerd on Linux and go this with the networking QoS tools: https://tldp.org/HOWTO/Traffic-Control-HOWTO/components.html
Re:macOS command-line tools you might not know about
by pwenzel on Tuesday June 27, 2023 @10:56AM
(#36493800)
Network Link Conditioner rules. I pair it with `mitmproxy` for debugging native apps.
Re:macOS command-line tools you might not know about
by macshome on Tuesday June 27, 2023 @04:49PM
(#36498436)
You can also use `rvictl` to connect to a development iOS device’s network device for grab a tcp dump.
Also Instruments has a really nice network capture tool now.
Re:macOS command-line tools you might not know about
by Arubis on Tuesday June 27, 2023 @11:23AM
(#36494202)
[Comcast](https://github.com/tylertreat/comcast) also does this for macOS, BSD, and Linux. And it's _brilliantly_ named.
Re:macOS command-line tools you might not know about
by wkat4242 on Tuesday June 27, 2023 @01:04PM
(#36495727)
Thanks! I'm on BSD so this is great to hear!
Re:macOS command-line tools you might not know about
by ipozgaj on Wednesday June 28, 2023 @12:44PM
(#36509042)
You can do that with standard Linux tooling available on every distribution, see https://man7.org/linux/man-pages/man8/tc.8.html. What you're specifically looking for is `qdisc netem`, it can inject packet loss, reordered packets, duplicate packets, delay and more.
Re:macOS command-line tools you might not know about
by xenadu02 on Thursday June 29, 2023 @01:01AM
(#36516500)
Note that NLC is a GUI interface to control dummynet and PF (packet filter). It sets up rules to inject packet relay and drop a certain percentage of packets based on the profile.
You can use dnctl and pfctl on macOS to do similar things and more.
You can simulate a really bad network. Latency, bandwidth, packet loss etc. Great for testing but also if people insist on cameras being on. Just screw up the connection so bad that everyone gets annoyed with your blocky image and robot voice and suggest you turn off video and then you make it 'magically' ok - lol