From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f66ab,e17edaef8269cacc X-Google-Attributes: gidf66ab,public X-Google-Thread: fee84,e17edaef8269cacc X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-09-10 08:23:04 PST Xref: gmd.de comp.os.mach:2138 comp.unix.osf.osf1:1007 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!bigboote.WPI.EDU!dikkala From: dikkala@cs.wpi.edu (Ravikumar Dikkala) Newsgroups: comp.os.mach,comp.unix.osf.osf1 Subject: Re: Problems with the netmesgserver under OSF/1 Date: 10 Sep 1993 15:06:21 GMT Organization: Worcester Polytechnic Institute Distribution: world Message-ID: <26q55d$kt@bigboote.WPI.EDU> References: <26lc70$mla@bigboote.WPI.EDU> NNTP-Posting-Host: gingko.wpi.edu X-Newsreader: TIN [version 1.2 PL1] Hi: Thanks too all those who helped me out. The reason I was getting the error: "netname look up: (server/netname) name not checked in" was because we were running only the Simple Message Server (snames) on our machines instead of the Network Message Server (netmsgserver). -Ravi My original posting: -------------------------------------------------------------------------- Hi: I have problems trying to communicate with the remote netmesgserver under OSF/1. I do a netname_check_in a server port on a remote machine and then try to do a netname_look_up from the local machine, but I get the following error message: netname look up: (server/netname) name not checked in Local machine (client) : OSF1 kaon 1.0.4 SVR99 i386 Remote machine (server) : OSF1 lepton 1.0.4 SVR99 i386 But when the server and client are running on the same machine, there is no problem, the netname_look_up is successful. Thanks for any hints, -Ravi PS: I have included the source for more information... ---------------Server Code----------------------------------------- #include #include #include port_name_t server_port; main() { kern_return_t ret; netname_name_t name; /* * Allocate a new port. */ ret = port_allocate(task_self(), &server_port); if (ret != KERN_SUCCESS) { mach_error("port_allocate:", ret); exit(1); } /* * Check the name in. The ASCII name will be * "TimeServerPort"; any client wishing to * communicate with the time server must * know to use this name. */ strcpy(name, "TimeServerPort"); ret = netname_check_in(name_server_port, name, task_self(), server_port); if (ret != NETNAME_SUCCESS) { mach_error("netname check in:", ret); exit(1); } while (1) { sleep (10000); } } -----------------Client Code-------------------------------------- #include #include #include #include port_name_t server_port; main() { kern_return_t ret; netname_name_t name; /* * Look up the server port using the name "TimeServerPort". */ strcpy(name, "TimeServerPort"); ret = netname_look_up(name_server_port, "kaon", name, &server_port); if (ret != NETNAME_SUCCESS) { mach_error("netname look up:", ret); exit(1); } printf (" Look up successful.\n"); }