Added new function to return a reply if no reply has already been sent, without abort...
authorFilippo Gioachin <gioachin@uiuc.edu>
Tue, 10 Aug 2010 20:13:35 +0000 (15:13 -0500)
committerFilippo Gioachin <gioachin@uiuc.edu>
Tue, 10 Aug 2010 20:13:35 +0000 (15:13 -0500)
src/conv-ccs/conv-ccs.c
src/conv-ccs/conv-ccs.h

index 63348884e87ea384f8a915dc93ce3d6c21157fe0..7cb3e04e4c111cf2d1ff162218c3882b805a7c41 100644 (file)
@@ -183,6 +183,11 @@ void CcsSendReply(int replyLen, const void *replyData)
   CpvAccess(ccsReq) = NULL;
 }
 
+void CcsSendReplyNoError(int replyLen, const void *replyData) {
+  if (CpvAccess(ccsReq)==NULL) return;
+  CcsSendReply(replyLen, replyData);
+}
+
 void CcsSendDelayedReply(CcsDelayedReply d,int replyLen, const void *replyData)
 {
   CcsImplHeader *h = d.hdr;
index e0e64868ca8ebd036d49f99da3d1ccc905af5c4f..61a9a3d9119c34256eb499a4d6ea8e0877f52963 100644 (file)
@@ -94,6 +94,7 @@ int CcsEnabled(void);
 int CcsIsRemoteRequest(void);
 void CcsCallerId(skt_ip_t *pip, unsigned int *pport);
 void CcsSendReply(int replyLen, const void *replyData);
+void CcsSendReplyNoError(int replyLen, const void *replyData);
 CcsDelayedReply CcsDelayReply(void);
 void CcsSendDelayedReply(CcsDelayedReply d,int replyLen, const void *replyData);
 void CcsNoReply();
@@ -111,6 +112,7 @@ typedef void *CcsDelayedReply;
 #define CcsCallerId(x,y)  /*empty*/
 #define CcsDelayReply() 0
 #define CcsSendReply(s,r) /*empty*/
+#define CcsSendReplyNoError(s,r) /*empty*/
 #define CcsSendDelayedReply(d,s,r); 
 #define CcsNoReply() /*empty*/
 #define CcsNoDelayedReply(d) /*empty*/