Linux Socket Sample Training Code