Create Generic code

Code for network socket creation and communication.
Non-working code as cannot share a working code under university policy