DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦2803a19bb⟧ TextFile

    Length: 2756 (0xac4)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Behavior;
with Identifier;
with Method;
with Message;
with Message_Transport;
with Parameter;
with Signature;
with Text_Io;

use Text_Io;
package body Date_Client is

    procedure Process_Message (M : Message.Object);

    task Tx is
        entry Go;
        entry Ok;
    end Tx;


    package B is new Behavior (Tx.Go, Process_Message);

    task body Tx is
        Status : Message_Transport.Status_Code;
    begin
        accept Go;

        B.Send_Message
           (Message => Message.Create
                          (Class => Message.Request,
                           Addressee => Identifier.Hash
                                           (Id => Identifier.Broker),
                           Sender => Identifier.Hash (Id => B.Get_Identity),
                           Method => "date",
                           Parameter_Name => "date",
                           Parameter_Class => "string",
                           Parameter_Value => Parameter.Void),
            Status => Status);

        accept Ok;

        loop
            delay Duration'Last;
        end loop;

    end Tx;


    procedure Process_Message (M : Message.Object) is
    begin
        Put_Line (Message.Image (M));
    end Process_Message;


    procedure Start is
        Status : Message_Transport.Status_Code;
    begin

        Tx.Ok;

        loop
            B.Send_Message
               (Message => Message.Create
                              (Class => Message.Request,
                               Addressee => Identifier.Hash (Identifier.Broker),
                               Sender => Identifier.Hash (B.Get_Identity),
                               Method => "date",
                               Parameter_Name => "date",
                               Parameter_Class => "string",
                               Parameter_Value => Parameter.Void),
                Status => Status);
            delay 1.0;
        end loop;



        -- B.Send_Message (Message =>
        --                    Message.Create (Class => Message.Unregistration,
        --                                    Addressee => Identifier.Hash
        --                                                    (Identifier.Broker),
        --                                    Sender => Identifier.Hash
        --                                                 (B.Get_Identity),
        --                                    Method => "shutdown",
        --                                    Parameter_Name => "when",
        --                                    Parameter_Class => "string",
        --                                    Parameter_Value => "now"),
        --                 Status => Status);
        --
        --
    end Start;

end Date_Client;