Clean up socket_type_string

Remove old function definition, add comment to clarify mechanism usage.