Factor out common tcp and ssl configuration in super classes