reorder && add type listening socket demo