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

⟦26687736a⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Client, seg_0548fe

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 Transport, Transport_Defs, Text_Io, Utils, Byte_Defs;

package body Client is
    Connection : Transport.Connection_Id;
    Status : Transport_Defs.Status_Code;
    Network_Name : constant Transport_Defs.Network_Name := "TCP/IP";
    Count : Natural;
    Receive_Data : Byte_Defs.Byte_String (1 .. 4);  
    Socket : constant Transport_Defs.Socket_Id (1 .. 4) := (2, 6, 0, 9);

    procedure Speak is
    begin
        loop
            Transport.Open (Connection, Status, Network_Name, Socket);  
            Text_Io.Put_Line (Transport_Defs.Image (Status));
            exit when Transport.Is_Open (Connection) = True;
        end loop;  
        Text_Io.Put_Line (Transport_Defs.Image (Status));
        Text_Io.Put_Line ("Client : Open is OK");

        loop
            Transport.Connect (Connection, Status, Duration'Last);
            exit when Transport.Is_Connected (Connection) = True;
        end loop;
        Text_Io.Put_Line (Transport_Defs.Image (Status));
        Text_Io.Put_Line (" Client : Connection is OK");

        Transport.Receive (Connection, Status, Receive_Data,
                           Count, Duration'Last);  
        Text_Io.Put_Line ("Client : Receive_Data");  
        Text_Io.Put_Line (Transport_Defs.Image (Status));
        Text_Io.Put_Line (Utils.Byte_String_To_String (Receive_Data));

        Transport.Disconnect (Connection);  
        Text_Io.Put_Line ("Client : Disconnect is OK");

    end Speak;
end Client;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1a rec1=00 rec2=01 rec3=060
        [0x01] rec0=0e rec1=00 rec2=02 rec3=000
    tail 0x2175da2b687b88736af0f 0x42a00088462060003