GH #324 - Use socket types given on input.