Socket input adapter class