From df3f26afd7f0efd7034892309a7cde2226698741 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 4 Aug 1999 23:23:01 +0000 Subject: [PATCH] print who sent the message when a bad message arrives --- src/cas/generic/casDGClient.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/cas/generic/casDGClient.cc b/src/cas/generic/casDGClient.cc index 4e4d31fcb..4f8eb5098 100644 --- a/src/cas/generic/casDGClient.cc +++ b/src/cas/generic/casDGClient.cc @@ -29,6 +29,9 @@ * * History * $Log$ + * Revision 1.16 1998/12/19 00:04:51 jhill + * renamed createPV() to pvAttach() + * * Revision 1.15 1998/04/20 18:11:01 jhill * better debug mesg * @@ -437,8 +440,10 @@ void casDGClient::processDG(casDGIntfIO &inMsgIO, casDGIntfIO &outMsgIO) // status = this->processMsg(); if (status) { - errMessage (status, - "- unexpected error processing stateless protocol"); + char pName[64u]; + this->clientHostName (pName, sizeof (pName)); + errPrintf (status, __FILE__, __LINE__, + "- bad stateless protocol from \"%s\"", pName); } // // force all replies to go to the sender @@ -501,7 +506,7 @@ xSendStatus casDGClient::xDGSend (char *pBufIn, bufSizeT nBytesNeedToBeSent, // // !! this time fetch may be slowing things down !! // - this->elapsedAtLastSend = osiTime::getCurrent(); + this->lastSendTS = osiTime::getCurrent(); } return stat; } @@ -523,7 +528,7 @@ xRecvStatus casDGClient::xDGRecv (char *pBufIn, bufSizeT nBytesToRecv, // // !! this time fetch may be slowing things down !! // - this->elapsedAtLastRecv = osiTime::getCurrent(); + this->lastRecvTS = osiTime::getCurrent(); } return stat; }