patch 9.1.1651: Cannot use clientserver over socket

Problem:  Cannot use clientserver over Unix domain socket
Solution: Implement socketserver functionality (Foxe Chen).

fixes: #3509
closes: #17839

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Foxe Chen
2025-08-18 21:40:40 +02:00
committed by Christian Brabandt
parent 31170af24a
commit 96b2154b73
34 changed files with 2562 additions and 68 deletions

View File

@ -945,11 +945,20 @@
# define FIND_REPLACE_DIALOG 1
#endif
/*
* +socketserver Use UNIX domain sockets for clientserver communication
*/
#if defined(UNIX) && (defined(WANT_SOCKETSERVER) || \
(defined(MAYBE_SOCKETSERVER) && !defined(HAVE_X11)))
#define FEAT_SOCKETSERVER
#endif
/*
* +clientserver Remote control via the remote_send() function
* and the --remote argument
*/
#if (defined(MSWIN) || defined(FEAT_XCLIPBOARD)) && defined(FEAT_EVAL)
#if (defined(MSWIN) || defined(FEAT_XCLIPBOARD) || defined(FEAT_SOCKETSERVER)) \
&& defined(FEAT_EVAL)
# define FEAT_CLIENTSERVER
#endif