summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-01-16 07:13:51 +0000
committermbr <mbr@FreeBSD.org>2003-01-16 07:13:51 +0000
commitf209ccb0fd339f0ad952359f267ec716648085fe (patch)
tree6bd8cc71c4fc5cb27b7c8f75fd6ce10b33e5e18d /include
parent8aff4de412d07787b5d5132fa31ed1c1bf8b3232 (diff)
downloadFreeBSD-src-f209ccb0fd339f0ad952359f267ec716648085fe.zip
FreeBSD-src-f209ccb0fd339f0ad952359f267ec716648085fe.tar.gz
Implement non-blocking tcp-connections.
Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
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 80497dd78..122fe7e 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 dc0f9ca..e62c84d 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,
OpenPOWER on IntegriCloud