unify socket creation
sockobj:connect method