jesusabdullah, mux-demux and ns socket are pretty much the same idea