From dca2bef4e32e631c2eabc387261b4be680016095 Mon Sep 17 00:00:00 2001 From: me_desk Date: Sat, 13 Apr 2013 21:49:33 +0000 Subject: notifications about protocol version incompatibility implemented git-svn-id: svn://localhost/project_picapica/trunk@236 fb96df88-216d-11de-830c-f3023f12d8ac --- PICA_client.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'PICA_client.c') 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; } -- cgit v1.2.1