diff options
author | daniel <danieruru@gmail.com> | 2013-01-24 22:40:47 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-24 22:40:47 +0900 |
commit | c21f92c559177c5d13e8dd1777fc30d8fc00457d (patch) | |
tree | 927dc80af62f72a6be9828dfaf90ea0e9f8f375d | |
parent | 70b0a2a0d5b05230808aa75f594a05109c63f880 (diff) |
Add a max recv value for completeness.
-rw-r--r-- | vxi11_server.c | 8 |
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; } } |