macos netcat start listening

C++
$ netcat -ulzp 8125
Source

Also in C++: