add basic socket object constructor