DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦cda7b2405⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Client, seg_055e6e

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Agent_Tools;  
with Bounded_String;  
with Generic_My_Agent;
with My_Message;
with Server_Utilities;
with Text_Io;


procedure Test_Client is  
    Job, Note : My_Message.My_String;
    Saisie : String (1 .. 3);
    package My_Agent is
       new Generic_My_Agent (Service_Server => Server_Utilities.Function_Null);
begin

-- Enregistrement aupres de l'ORB

    Agent_Tools.Registration;
    Text_Io.Put_Line ("Local_id apres registration: " &
                      Bounded_String.Image (Agent_Tools.Get_Local_Id));

-- Demarrage de la tache de reception

    My_Agent.Start_Agent (Agent_Socket => Agent_Tools.Get_Local_Id);

-- Utilisation de l'ORB

    delay (60.0);

    Agent_Tools.Query;                      -- Query

    Bounded_String.Copy (Note, "Hello everybody !!");
    Agent_Tools.Notification (Note);        -- Notification

    Agent_Tools.
       Content;                    -- Liste des services connus de l'Orb

    Bounded_String.Copy (Job, "RUBBISH");   -- Requete d'un service inexistant
    Agent_Tools.Request (Job);

    Bounded_String.Copy (Job, "HOUR");
    for I in 1 .. 5 loop
        delay (5.0);
        Agent_Tools.Request (Job);          -- Requete sur le service Heure
    end loop;
    delay (30.0);

    Bounded_String.Copy (Job, "DATE");
    Agent_Tools.Request (Job);              -- Nouvelle requete => Date

    Agent_Tools.Unregistration;             -- Unregistration du client

    while
       not Agent_Tools.
           Is_Finished loop        -- Test si toutes les requetes ont eu une reponse...
        null;
    end loop;

    Text_Io.Put_Line ("TEST FINISHED, I'm killing myself...");
    My_Agent.
       Stop_Agent;                  -- ... avant de tuer les taches de reception

end Test_Client;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=27 rec1=00 rec2=01 rec3=00a
        [0x01] rec0=1a rec1=00 rec2=02 rec3=001
    tail 0x21761578887c0935e9625 0x42a00088462060003