Skip to content

Instantly share code, notes, and snippets.

@zed
Created October 17, 2010 06:08
Show Gist options
  • Select an option

  • Save zed/630592 to your computer and use it in GitHub Desktop.

Select an option

Save zed/630592 to your computer and use it in GitHub Desktop.
(defcustom server-use-tcp nil
"If non-nil, use TCP sockets instead of local sockets."
:set #'(lambda (sym val)
(unless (featurep 'make-network-process '(:family local))
(setq val t)
(unless load-in-progress
(message "Local sockets unsupported, using TCP sockets")))
(when val (random t))
(set-default sym val))
:group 'server
:type 'boolean
:version "22.1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment