|
|
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: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Serveur_Heure, seg_057a63
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Time_Utilities;
with Calendar;
with Generic_Comm;
with Messages;
with Message_Storage;
with Std_Types;
with Text_Io;
use Std_Types;
procedure Serveur_Heure is
The_Time : Calendar.Time := Calendar.Clock;
Done : Boolean := False;
Message : Messages.Obj_Msg;
Connection_Delay : Duration := 10.0;
Try_Number : Positive := 1;
My_Bal : Message_Storage.Bal;
package Comm is new Generic_Comm (Connection_Delay, Try_Number, My_Bal);
Source_Id : Natural;
begin
Text_Io.Put_Line
("=======================Serveur donnant l'heure====================");
Comm.Send (Typ => Registration,
Rem_Host => Ficus,
Rem_Socket => Orb_Socket,
Msg => "**** Message from serveur_heure ***");
Source_Id := Comm.Get_Client_Id;
Comm.Send (Typ => Publication,
Rem_Host => Ficus,
Rem_Socket => Orb_Socket,
Msg => "heure",
Source => Source_Id);
My_Bal.Get_Message (Message);
loop
My_Bal.Is_Empty (Done);
while Done loop
My_Bal.Is_Empty (Done);
end loop;
My_Bal.Get_Message (Message);
if String_Var_To_String (Messages.Get_Content (Message)) = "heure" then
The_Time := Calendar.Clock;
Comm.Send (Typ => Forward,
Rem_Host => Ficus,
Rem_Socket => Orb_Socket,
Msg => "Il est exactement : " &
Time_Utilities.Image
(Calendar.Seconds (The_Time)),
Source => Source_Id,
Target => Messages.Get_Source_Id (Message),
Order => 7);
Text_Io.Put_Line ("l'heure a ete envoyee a l'orb");
end if;
end loop;
end Serveur_Heure;
nblk1=4
nid=2
hdr6=4
[0x00] rec0=21 rec1=00 rec2=01 rec3=008
[0x01] rec0=1b rec1=00 rec2=04 rec3=000
[0x02] rec0=08 rec1=00 rec2=03 rec3=000
[0x03] rec0=0c rec1=00 rec2=04 rec3=000
tail 0x21764cbcc87cd9215e788 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 03 00 4e 80 0b 20 61 20 6c 27 6f 72 62 22 29 ┆ N a l'orb")┆
0x3: 0000 00 00 00 a0 00 1c 20 20 20 20 20 20 20 20 20 20 ┆ ┆