summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vxi11_server.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vxi11_server.c b/vxi11_server.c
index 8a356be..43d6ef3 100644
--- a/vxi11_server.c
+++ b/vxi11_server.c
@@ -19,6 +19,7 @@
#define SIZEOFARRAY(a) (sizeof(a) / sizeof(a[0]))
+#define MAXRECV 1024 // change this to change the max recv size
#define ERR_SYNTAXERROR 1
#define ERR_DEVICENOTACCESSIBLE 3
#define ERR_INVALIDLINKINDENTIFIER 4
@@ -34,8 +35,12 @@
#define ERR_ABORT 23
#define ERR_CHANNELALREADYESTABLISHED 29
+// these are to handle the RPC client that is needed to
+// connect back to the client for handling interrupts
+// the "interrupt channel destroy" method doesn't give
+// us anything to tell which channel to destroy so
+// it seems like there can only be one.
static CLIENT* intclient = NULL;
-
static bool intenabled = false;
static gchar* inthandler = NULL;
@@ -146,6 +151,7 @@ create_link_1_svc(Create_LinkParms *argp, struct svc_req *rqstp) {
getsockname(rqstp->rq_xprt->xp_sock, (struct sockaddr *) &sin, &len);
result.error = 0;
result.abortPort = ntohs(sin.sin_port);
+ result.maxRecvSize = MAXRECV;
result.lid = linkid;
}
}