DIRECTORY List, Rope, SunRPC, SunRPCBinding; NameService: CEDAR DEFINITIONS = BEGIN ROPE: TYPE = Rope.ROPE; RegistrationRecord: TYPE = RECORD [ name: ROPE, instance: ROPE, host: ROPE, sbh: ROPE, appl: List.LORA ]; Registration: TYPE = REF RegistrationRecord; ExportRPCSun: PROC [name: ROPE, sp: SunRPC.Server, prog, vers: INT, proto: SunRPCBinding.Transport ¬ $TCP, instance: ROPE _ NIL, appl: List.LORA _ NIL] RETURNS [sbh: ROPE, uid: ROPE]; ReexportRPCSun: PROC [uid: ROPE, name: ROPE, sp: SunRPC.Server, prog, vers: INT, proto: SunRPCBinding.Transport ¬ $TCP, instance: ROPE _ NIL, appl: List.LORA _ NIL] RETURNS [sbh: ROPE]; ImportRPCSun: PROC [name: ROPE _ NIL, instance: ROPE _ NIL, host: ROPE _ NIL, appl: List.LORA _ NIL] RETURNS [h: SunRPC.Handle, r: Registration]; ImportRegistrations: PROC [name: ROPE _ NIL, instance: ROPE _ NIL, host: ROPE _ NIL, appl: List.LORA] RETURNS [regList: LIST OF Registration]; SBHToRope: PROC [prog, vers: INT, proto: SunRPCBinding.Transport, hostAddr: ROPE, port: CARD] RETURNS [sbh: ROPE]; SBHFromRope: PROC [sbh: ROPE] RETURNS [prog, vers: INT, proto: SunRPCBinding.Transport, hostAddr: ROPE, port: CARD]; END. ê NameService.mesa Copyright Ó 1992 by Xerox Corporation. All rights reserved. Theimer, March 10, 1993 2:50 pm PST Interface to the NMS name service facilities. Export to the NMS name service a registration consisting of attribute/values for Type, Host, Name, Instance and SBH. The string binding handle (SBH) is based on "prog" and "vers", and "proto". Additional attribute/values (placed in the "Appl" attribute) are specified in the association list "appl". appl must have the form: (ROPE) or ((a.b)(c.d)...) That is, appl is either a list containing a single ROPE or a list of DotCons pairs. Replace the previous NMS registration indicated by uid with a new one. Import from the NMS name service a SunRPC.Handle for the SunRPC interface that matches the specified attribute values in the local name service domain. "r" returns the description of the returned registration. Return the set of registrations in the NMS name service matching the specified attribute values. The result consists of a list of registration records. Returns a string binding handle that represents the RPC interface denoted by {prog, vers, proto, hostAddr, port}. Returns the prog, vers, proto, hostAddr, and port that are specified in the string binding handle sbh. Ê=•NewlineDelimiter ™™Jšœ Ïeœ1™