Move socketcall to use a table of function ptrs instead of a big switch.