socket: more porting to new socket code.

still some fallout. need to get ssl tests in place.