From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f66ab,e17edaef8269cacc,start X-Google-Attributes: gidf66ab,public X-Google-Thread: fee84,e17edaef8269cacc,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-09-08 14:34:46 PST Xref: gmd.de comp.os.mach:2132 comp.unix.osf.osf1:997 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: Problems with the netmesgserver under OSF/1 Followup-To: comp.os.mach, comp.unix.osf.osf1 Date: 8 Sep 1993 19:36:00 GMT Organization: Dept of Computer Science, WPI Distribution: world Message-ID: <26lc70$mla@bigboote.WPI.EDU> NNTP-Posting-Host: gingko.wpi.edu Keywords: netname_check_in , netname_look_up Originator: dikkala@gingko 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"); }