X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=b92f15e76efba62216b62869b848d81d9d197344;hb=29818ed78e32998641adcf5f23d3b854355918b5;hp=de3740fc93ad3aaad323a08ce32ed0a4429c6391;hpb=9c459af695605b44a044ad206562818be10034f1;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index de3740f..b92f15e 100644 --- a/client/client.c +++ b/client/client.c @@ -4,7 +4,16 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: client.c,v $ - * Revision 1.21 1995-09-29 17:01:47 quinn + * Revision 1.24 1995-10-30 12:41:13 quinn + * Added hostname lookup for server. + * + * Revision 1.23 1995/10/18 16:12:30 quinn + * Better diagnostics. + * + * Revision 1.22 1995/10/11 14:49:12 quinn + * Smallish. + * + * Revision 1.21 1995/09/29 17:01:47 quinn * More Windows work * * Revision 1.20 1995/08/29 14:24:13 quinn @@ -317,7 +326,9 @@ void display_grs1(Z_GenericRecord *r, int level) } else if (t->content->which == Z_ElementData_string) printf("%s\n", t->content->u.string); - else + else if (t->content->which == Z_ElementData_numeric) + printf("%d\n", *t->content->u.numeric); + else printf("??????\n"); } } @@ -660,13 +671,13 @@ void process_close(Z_Close *req) { "finished", "shutdown", - "systemProblem", - "costLimit", + "system problem", + "cost limit reached", "resources", - "securityViolation", + "security violation", "protocolError", - "lackOfActivity", - "peerAbort", + "lack of activity", + "peer abort", "unspecified" }; @@ -997,6 +1008,7 @@ static int client(void) if (!z_APDU(in, &apdu, 0)) { odr_perror(in, "Decoding incoming APDU"); + fprintf(stderr, "[Near %d]\n", odr_offset(in)); fprintf(stderr, "Packet dump:\n---------\n"); odr_dumpBER(stderr, netbuffer, res); fprintf(stderr, "---------\n");