aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2003-01-16 07:13:51 +0000
committerMartin Blapp <mbr@FreeBSD.org>2003-01-16 07:13:51 +0000
commit08497c026ce2b54dadb727e04f08b26f2ecb7663 (patch)
tree6bd8cc71c4fc5cb27b7c8f75fd6ce10b33e5e18d /include
parent41f294aba16865f09943a59e17b7de106b3cd5ae (diff)
downloadsrc-08497c026ce2b54dadb727e04f08b26f2ecb7663.tar.gz
src-08497c026ce2b54dadb727e04f08b26f2ecb7663.zip
Implement non-blocking tcp-connections.
Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
Notes
Notes: svn path=/head/; revision=109359
Diffstat (limited to 'include')
-rw-r--r--include/rpc/rpc_com.h2
-rw-r--r--include/rpc/svc.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/include/rpc/rpc_com.h b/include/rpc/rpc_com.h
index 80497dd787ae..122fe7e4baca 100644
--- a/include/rpc/rpc_com.h
+++ b/include/rpc/rpc_com.h
@@ -74,7 +74,7 @@ int __rpc_sockisbound(int);
struct netbuf *__rpcb_findaddr(rpcprog_t, rpcvers_t, const struct netconfig *,
const char *, CLIENT **);
-bool_t __rpc_control(int,void *);
+bool_t rpc_control(int,void *);
char *_get_next_token(char *, int);
diff --git a/include/rpc/svc.h b/include/rpc/svc.h
index dc0f9ca8c477..e62c84d6ac21 100644
--- a/include/rpc/svc.h
+++ b/include/rpc/svc.h
@@ -70,7 +70,14 @@
*/
#define SVCGET_VERSQUIET 1
#define SVCSET_VERSQUIET 2
+#define SVCGET_CONNMAXREC 3
+#define SVCSET_CONNMAXREC 4
+/*
+ * Operations for rpc_control().
+ */
+#define RPC_SVC_CONNMAXREC_SET 0 /* set max rec size, enable nonblock */
+#define RPC_SVC_CONNMAXREC_GET 1
enum xprt_stat {
XPRT_DIED,