|
|
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 - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Message_Test_Driver, seg_00fdde
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Next_Token_Scanner;
with Io;
with Message;
with Client;
with Network;
package body Message_Test_Driver is
procedure Start (In_File : String) is
F : Io.File_Type;
Pkt : Message.Packet;
Source_Id, Dest_Id : Client.Id;
begin
Message.Initialize (Pkt, Client.Nil);
Io.Open (F, Io.In_File, In_File);
while not Io.End_Of_File (F) loop
declare
File_Line : constant String := Io.Get_Line (F);
Line : String (File_Line'Range) := File_Line;
Pos : Natural := Line'First;
function Token is new Next_Token_Scanner (Pos, Line);
T1 : constant String := Token;
T2 : constant String := Token;
T3 : constant String := Token;
begin
if T1 /= "" and then T1 /= "--" then
-- line format is "Dest Source Message"
Dest_Id := Client.Get_Id (T1);
Source_Id := Client.Get_Id (T2);
Message.Initialize (Pkt, Source_Id);
Message.Set_Destination (Pkt, Dest_Id);
Message.Set_Body (Pkt, T3);
Network.Send (Pkt);
end if;
end;
delay 5.0;
end loop;
end Start;
procedure Divert_Output is
begin
[statement]
end Divert_Output;
procedure Send_Packet (Pkt : Message.Packet) is
begin
Network.Send (Pkt);
end Send_Packet;
end Message_Test_Driver;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=1c rec1=00 rec2=01 rec3=042
[0x01] rec0=18 rec1=00 rec2=02 rec3=000
tail 0x2150bb426822f634ab4cf 0x42a00088462060003