Fix prototype socket stuff.