added sendVersion member func

This commit is contained in:
Jeff Hill
2001-08-29 17:57:19 +00:00
parent 8aa2d63967
commit 07e9ed18bf
+15 -1
View File
@@ -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()
//