mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@749 72102866-910b-0410-8b05-ffd578937521
20 lines
409 B
Objective-C
20 lines
409 B
Objective-C
#include <remote/NXConnection.h>
|
|
#include <remote/NXProxy.h>
|
|
#include <objc/List.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
id s;
|
|
|
|
s = [NXConnection connectToName:"nxserver"];
|
|
|
|
printf("Server has class name `%s'\n",
|
|
[s name]);
|
|
printf("First object in server has class name `%s'\n",
|
|
[[s objectAt:0] name]);
|
|
|
|
/* Be nice and shut down the connection */
|
|
[[s connectionForProxy] free];
|
|
|
|
exit(0);
|
|
}
|