source: tags/initial/PROBE/probe_debug.cxx

Last change on this file was 2, checked in by oldcode, 24 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 477 bytes
Line 
1#include <stdio.h>
2#include <PT_com.h>
3#include <client.h>
4extern "C" {
5        char *md2(void * object);
6}
7main(int argc,char ** argv)
8{
9        int zw;
10        T_PT_MAIN com;
11        aisc_com *link;
12        if(argc<3){
13                printf("syntax: %s <machine name> address\n", argv[0]);
14                exit(1);
15        }
16        link = (aisc_com *)aisc_open(argv[1], &com, AISC_MAGIC_NUMBER);
17        if (!link) {
18                printf("cannot contact server\n", argv[0]);
19                exit(1);
20        }
21        zw = atoi(argv[2]);
22        if(!zw) zw = (int)com;
23        printf("%s\n",md2((void *)zw));
24}
Note: See TracBrowser for help on using the repository browser.