summaryrefslogtreecommitdiffstats
path: root/PICA_client.c
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-04-13 21:49:33 +0000
committerme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-04-13 21:49:33 +0000
commitdca2bef4e32e631c2eabc387261b4be680016095 (patch)
treee86b72543d0738633abc94c5ef9607bb757422a6 /PICA_client.c
parent5c2175f675751f63ffa47ffde156620cc6f77abd (diff)
downloadpica-pica-dca2bef4e32e631c2eabc387261b4be680016095.tar.gz
pica-pica-dca2bef4e32e631c2eabc387261b4be680016095.zip
notifications about protocol version incompatibility implemented
git-svn-id: svn://localhost/project_picapica/trunk@236 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'PICA_client.c')
-rwxr-xr-xPICA_client.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/PICA_client.c b/PICA_client.c
index 5456ae5..ef8c638 100755
--- a/PICA_client.c
+++ b/PICA_client.c
@@ -829,8 +829,13 @@ while (cid->init_resp_ok == 0);
if (cid->init_resp_ok != 1)
{
if (cid->init_resp_ok == -1)
- ret_err = PICA_ERRVERDIFFER;
-
+ {
+ if (cid->node_ver_major > PICA_PROTO_VER_HIGH ||
+ (cid->node_ver_major == PICA_PROTO_VER_HIGH && cid->node_ver_minor > PICA_PROTO_VER_LOW))
+ ret_err = PICA_ERRPROTONEW;
+ else
+ ret_err = PICA_ERRPROTOOLD;
+ }
goto error_ret_5;
}