rewriting Client/Server code to match NS-3 code style.