summaryrefslogtreecommitdiff
path: root/examples/c/ex_rep/base/rep_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_rep/base/rep_base.h')
-rw-r--r--examples/c/ex_rep/base/rep_base.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/c/ex_rep/base/rep_base.h b/examples/c/ex_rep/base/rep_base.h
index 27901349..48d5d3ac 100644
--- a/examples/c/ex_rep/base/rep_base.h
+++ b/examples/c/ex_rep/base/rep_base.h
@@ -1,7 +1,7 @@
/*-
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 2001, 2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2015 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
@@ -71,6 +71,8 @@ typedef SOCKET socket_t;
#define readsocket(s, buf, sz) recv((s), (buf), (int)(sz), 0)
#define writesocket(s, buf, sz) send((s), (const char *)(buf), (int)(sz), 0)
#define net_errno WSAGetLastError()
+#undef SHUT_RDWR
+#define SHUT_RDWR SD_BOTH
#else /* !_WIN32 */
@@ -104,9 +106,10 @@ socket_t get_accepted_socket __P((const char *, int));
socket_t get_connected_socket
__P((machtab_t *, const char *, const char *, int, int *, int *));
int get_next_message __P((socket_t, DBT *, DBT *));
-socket_t listen_socket_init __P((const char *, int));
+socket_t listen_socket_init __P((const char *, int, machtab_t *));
socket_t listen_socket_accept
__P((machtab_t *, const char *, socket_t, int *));
+int machtab_destroy __P((machtab_t *));
int machtab_getinfo __P((machtab_t *, int, u_int32_t *, int *));
int machtab_init __P((machtab_t **, int));
void machtab_parm __P((machtab_t *, int *, u_int32_t *));