Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/socket_tests/us_xfr_v2.h')
-rw-r--r--winsup/cygwin/socket_tests/us_xfr_v2.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/winsup/cygwin/socket_tests/us_xfr_v2.h b/winsup/cygwin/socket_tests/us_xfr_v2.h
new file mode 100644
index 000000000..aef7e2435
--- /dev/null
+++ b/winsup/cygwin/socket_tests/us_xfr_v2.h
@@ -0,0 +1,22 @@
+/*************************************************************************\
+* Copyright (C) Michael Kerrisk, 2018. *
+* *
+* This program is free software. You may use, modify, and redistribute it *
+* under the terms of the GNU General Public License as published by the *
+* Free Software Foundation, either version 3 or (at your option) any *
+* later version. This program is distributed without any warranty. See *
+* the file COPYING.gpl-v3 for details. *
+\*************************************************************************/
+
+/* Solution for Exercise 59-3:c */
+
+/* us_xfr_v2.h
+
+ Header file for us_xfr_sv.c and us_xfr_cl.c.
+*/
+#include "unix_sockets.h" /* Declares our socket functions */
+#include "af_unix_hdr.h"
+
+#define SV_SOCK_PATH "/tmp/us_xfr_v2"
+
+#define BUF_SIZE 100