a dummy function defined when NO_SOCK.