A socket Demo