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

⟦837991e36⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Echo, seg_002fe2

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 Byte_Defs;
with Transport_Defs;
--
package Echo is

    Socket : constant Transport_Defs.Socket_Id := (0, 7);
    Max_Wait : Duration := 60.0;

    procedure Server (Network : Transport_Defs.Network_Name := "UDP/IP";
                      Socket : Transport_Defs.Socket_Id := Echo.Socket);
    -- Accept incoming connections on the given Network & Socket.
    -- When any data are received, transmit them back.
    -- Repeat indefinitely.

    procedure Client (Server : String := ">>machine name<<";
                      Data : String := "hello!";
                      Repeat : Positive := 1;
                      Interval : Duration := 0.0;
                      Max_Wait : Duration := Echo.Max_Wait;
                      Network : Transport_Defs.Network_Name := "UDP/IP";
                      Socket : Transport_Defs.Socket_Id := Echo.Socket);
    procedure Client (Server : Transport_Defs.Host_Id;
                      Data : String := "hello!";
                      Repeat : Positive := 1;
                      Interval : Duration := 0.0;
                      Max_Wait : Duration := Echo.Max_Wait;
                      Network : Transport_Defs.Network_Name := "UDP/IP";
                      Socket : Transport_Defs.Socket_Id := Echo.Socket);
    procedure Client (Server : String := ">>machine name<<";
                      Data : Byte_Defs.Byte_String;
                      Repeat : Positive := 1;
                      Interval : Duration := 0.0;
                      Max_Wait : Duration := Echo.Max_Wait;
                      Network : Transport_Defs.Network_Name := "UDP/IP";
                      Socket : Transport_Defs.Socket_Id := Echo.Socket);
    procedure Client (Server : Transport_Defs.Host_Id;
                      Data : Byte_Defs.Byte_String;
                      Repeat : Positive := 1;
                      Interval : Duration := 0.0;
                      Max_Wait : Duration := Echo.Max_Wait;
                      Network : Transport_Defs.Network_Name := "UDP/IP";
                      Socket : Transport_Defs.Socket_Id := Echo.Socket);
    -- Connect to the given Server machine and Socket.
    -- Transmit the given Data.  Wait for Data to be echoed back,
    -- or Max_Wait to expire, whichever occurs first.

end Echo;

E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=19 rec1=00 rec2=01 rec3=00e
        [0x01] rec0=11 rec1=00 rec2=02 rec3=014
        [0x02] rec0=07 rec1=00 rec2=03 rec3=000
    tail 0x20f0013cc000806b87893 0x42a00088462060003