|
Last change
on this file was
5390,
checked in by westram, 17 years ago
|
|
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
|
File size:
559 bytes
|
| Line | |
|---|
| 1 | #include <stdio.h> |
|---|
| 2 | #include <PT_com.h> |
|---|
| 3 | #include <client.h> |
|---|
| 4 | extern "C" { |
|---|
| 5 | char *md2(void * object); |
|---|
| 6 | } |
|---|
| 7 | main(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(EXIT_FAILURE); |
|---|
| 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(EXIT_FAILURE); |
|---|
| 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.