add basic Socket constructor