socket dispatcher