Extract socket type
New mapping for sockets