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

⟦36a27b0f9⟧ Ada Source

    Length: 7168 (0x1c00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, seg_04ac14

Derivation

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

E3 Source Code



WITH Transport;
WITH Date_Defs;
WITH Interchange;
WITH Net_Info;
WITH Rpc;
WITH Rpc_Client;
WITH Rpc_Server;
WITH Transport_Date;
WITH Transport_Defs;
WITH Transport_Interchange;
WITH Transport_Stream;
WITH Text_Io;

PACKAGE BODY Date_Broker IS

   Remote_Host : CONSTANT Transport_Defs.Host_Id := Net_Info.Sparc_Address;

   Remote_Socket : CONSTANT Transport_Defs.Socket_Id := Net_Info.Sparc_Socket;


   PROCEDURE Start_Request IS  
      NEW Rpc_Client.Start_Request_Generic
             (Default_Network => Date_Defs.Network,
              Default_Host    => Remote_Host,
              Default_Socket  => Remote_Socket,
              Default_Program => Date_Defs.Program,
              Default_Version => Date_Defs.Version);


   PROCEDURE Process_Call (Stream  : Transport_Stream.Stream_Id;
                           Id      : Rpc.Transaction_Id;
                           Version : Rpc.Version_Number;
                           Proc    : Rpc.Procedure_Number) IS
   BEGIN
      CASE Proc IS
         WHEN Date_Defs.Proc_Number.Date =>
            DECLARE
               Answer : String (1 .. 29);  
               Date   : CONSTANT String := "date";
               Stream : Transport_Stream.Stream_Id;  
            BEGIN

               Start_Request (Stream => Stream,
                              Proc   => Date_Defs.Proc_Number.Date);
               Transport_Date.Put (Stream, "date");
               Rpc_Client.End_Request (Stream);
               Transport_Date.Get (Stream, Answer);

               Rpc_Client.End_Response (Stream);

               Text_Io.Put_Line (Answer);

               Rpc_Server.Begin_Response (Stream, Id);
               Text_Io.Put_Line ("##############");
               Transport_Date.Put (Stream, Answer);

               Text_Io.Put_Line ("$$$$$$$$$$$$$$");
            END;
         WHEN OTHERS =>
            RAISE Rpc.No_Such_Procedure;
      END CASE;
   END Process_Call;

   PROCEDURE Serve_Gets IS NEW Rpc_Server.Serve
                                  (Program => Date_Defs.Program,
                                   Supported => (0, Rpc.Version_Number'Last),
                                   Process_Call => Process_Call);

   PROCEDURE Serve (Connection : Transport.Connection_Id) IS
   BEGIN
      Serve_Gets (Connection);
   END Serve;


END Date_Broker;

E3 Meta Data

    nblk1=6
    nid=6
    hdr6=6
        [0x00] rec0=22 rec1=00 rec2=01 rec3=04e
        [0x01] rec0=1d rec1=00 rec2=05 rec3=006
        [0x02] rec0=0e rec1=00 rec2=04 rec3=000
        [0x03] rec0=0e rec1=00 rec2=04 rec3=000
        [0x04] rec0=18 rec1=00 rec2=04 rec3=000
        [0x05] rec0=07 rec1=00 rec2=06 rec3=000
    tail 0x21547e9ee867557f28923 0x489e0066482863c01
Free Block Chain:
  0x6: 0000  00 02 00 06 80 03 20 52 70 03 20 20 20 20 20 20  ┆       Rp       ┆
  0x2: 0000  00 03 02 cb 80 1b 20 20 20 54 65 78 74 5f 49 6f  ┆         Text_Io┆
  0x3: 0000  00 00 00 0f 80 0c 20 4e 75 6d 62 65 72 29 20 52  ┆       Number) R┆