Add some example socket code of re-work.