fixes #842 Managing sock types in a list is silly
fixes #841 Common code (global, etc) should not get protocol internals
45 files changed