summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-06-30 16:24:52 +0200
committerWerner Koch <wk@gnupg.org>2015-08-28 14:27:58 +0200
commit6d4a8ee2a6c749eec70bd3ae804f21456e375727 (patch)
tree8fff6038643ad4e3def0420d72084aec57787bb9 /doc
parent5a52404c704d0e99629a2db79dda17e3b95c9680 (diff)
downloadlibassuan-6d4a8ee2a6c749eec70bd3ae804f21456e375727.tar.gz
Support Cygwin local sockets.
* src/assuan-socket.c (cygwin_fdtable, cygwin_fdtable_cs): New. (is_cygwin_fd, insert_cygwin_fd, delete_cygwin_fd): New. (assuan_sock_init) [W32]: Init the CS. (assuan_sock_deinit) [W32]: Deinit the CS. (read_port_and_nonce): Add arg cygwin and detect Cygwin socket files. (_assuan_sock_set_flag): Add "cygwin" flag. (_assuan_sock_get_flag): Ditto. (do_readn, do_writen): New. (_assuan_sock_bind): Create a Cygwin socket file depending on a socket flag. (_assuan_sock_connect): Handle the cygwin socket protocol. (_assuan_sock_check_nonce): Ditto. -- This code has not been tested. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/assuan.texi14
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/assuan.texi b/doc/assuan.texi
index 14f2cf0..0a49d71 100644
--- a/doc/assuan.texi
+++ b/doc/assuan.texi
@@ -2069,7 +2069,19 @@ Store the current value of the flag @var{name} for socket @var{fd} at
success; on failure sets ERRNO and returns -1.
@end deftypefun
-No flags are defined.
+The supported flags are:
+
+@table @code
+@item cygwin
+This flag has an effect only on Windows. If the value is 1, the
+socket is set into Cygwin mode so that Cygwin clients can connect to
+such a socket. This flag needs to be set before a bind and should not
+be changed during the lifetime of the socket. There is no need to set
+this flag for connecting to a Cygwin style socket because no state is
+required at the client. On non-Windows platforms setting this flag is
+ignored, reading the flag always returns a value of 0.
+
+@end table
@c ---------------------------------------------------------------------