Implement socket type checking