ts_stdlib: Adding a few network functions I've found useful