Added socket code to repo