|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Registration, seg_0525c8, separate Broker
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Behavior_Defs; with Signature; with Parameter; separate (Broker) procedure Registration (M : Message.Object) is Mes : Message.Object; Met : Method.Object; Sig : Signature.Object; Host : Parameter.Object; Socket : Parameter.Object; Par : Parameter.Object; Id : Identifier.Object; Iter : Signature.Iterator; S : Message_Transport.Status_Code; use Message_Transport; begin New_Line; Put_Line ("+++ Received registration " & Method.Image (Message.Get_Method (M))); Sig := Method.Get_Signature (Message.Get_Method (M)); Signature.Init (Iter, Sig); Host := Signature.Value (Iter); Signature.Next (Iter); Socket := Signature.Value (Iter); Id := Identifier.Register (Host => Parameter.Get_Value (Host), Socket => Message_Transport.Socket'Value (Parameter.Get_Value (Socket))); Par := Parameter.Create (Name => Behavior_Defs.Identification_Parameter, Class => Behavior_Defs.Identification_Class, Value => Natural'Image (Identifier.Hash (Id))); Sig := Signature.Create; Signature.Add (To_Signature => Sig, The_Parameter => Par, At_Position => 1); Met := Method.Create (Name => Behavior_Defs.Identification_Name, Signature => Sig); Mes := Message.Create (Class => Message.Notification, Addressee => Identifier.Hash (Id), Sender => Identifier.Hash (Identifier.Broker), Method => Met); Message_Transport.Put (Message => Message.Image (Mes), Remote_Host => Identifier.Get_Host (Id), Remote_Socket => Identifier.Get_Socket (Id), Number_Of_Retry => 10, Retry_Delay => 0.1, Status => S); if S = Message_Transport.Ok then Put_Line ("+++ BEHAVIOR REGISTERED"); else Put_Line ("*** BEHAVIOR NOT REGISTERED"); end if; end Registration;
nblk1=4 nid=0 hdr6=8 [0x00] rec0=28 rec1=00 rec2=01 rec3=084 [0x01] rec0=04 rec1=00 rec2=04 rec3=014 [0x02] rec0=14 rec1=00 rec2=02 rec3=014 [0x03] rec0=0a rec1=00 rec2=03 rec3=000 tail 0x2154baf8687a0732ac1b7 0x42a00088462060003