Simplify by consolidating socket type enumerations (TCP/UDP)