|
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: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Message_Send_Test, seg_02b971
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Message; with Message_Transport; with Method; with Parameter; with Signature; with Text_Io; use Text_Io; package body Message_Send_Test is procedure Start (Host : String := "belladone"; Socket : Integer := 2605) is P1 : Parameter.Object; P2 : Parameter.Object; S : Signature.Object; M : Method.Object; Mes : Message.Object; Status : Message_Transport.Status_Code; begin P1 := Parameter.Create (Name => "message", Class => "string", Value => "hello world"); P2 := Parameter.Create (Name => "message", Class => Parameter.Void, Value => Parameter.Void); S := Signature.Create; Signature.Add (To_Signature => S, The_Parameter => P1, At_Position => 1); Signature.Add (To_Signature => S, The_Parameter => P2, At_Position => 2); M := Method.Create (Name => "Send", Signature => S); Mes := Message.Create (Class => Message.Subscription, Addressee => 0, Sender => 123, Method => M); Put_Line (Message.Image (Mes)); Put_Line (Message.Image (Message.Value (Message.Image (Mes)))); Message_Transport.Put (Message => Message.Image (Mes), Remote_Host => Host, Remote_Socket => Message_Transport.Socket (Socket), Number_Of_Retry => 1, Retry_Delay => 0.1, Status => Status); Put_Line (Message_Transport.Status_Code'Image (Status)); end Start; end Message_Send_Test;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=20 rec1=00 rec2=01 rec3=048 [0x01] rec0=1a rec1=00 rec2=02 rec3=001 tail 0x2172479b083f054b95a27 0x42a00088462060003