diff --git a/src/cas/generic/casClient.cc b/src/cas/generic/casClient.cc index 231d97ca6..b15163a1c 100644 --- a/src/cas/generic/casClient.cc +++ b/src/cas/generic/casClient.cc @@ -112,7 +112,7 @@ void casClient::loadProtoJumpTable() // Request Protocol Jump Table // (use of & here is more portable) // - casClient::msgHandlers[CA_PROTO_NOOP] = + casClient::msgHandlers[CA_PROTO_VERSION] = &casClient::noopAction; casClient::msgHandlers[CA_PROTO_EVENT_ADD] = &casClient::eventAddAction; @@ -366,6 +366,20 @@ caStatus casClient::noopAction () return S_cas_success; } +// send minor protocol revision to the client +void casClient::sendVersion () +{ + caHdr * pReply; + caStatus status = this->allocMsg ( 0, &pReply ); + if ( status ) { + return; + } + memset ( pReply, '\0', sizeof ( *pReply ) ); + pReply->m_cmmd = CA_PROTO_VERSION; + pReply->m_count = CA_MINOR_PROTOCOL_REVISION; + this->commitMsg (); +} + // // casClient::sendErr() //