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

⟦db50429ec⟧ Ada Source

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

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 Com_Storage_Socket, Transport_Defs, Text_Io, Byte_Defs, Host_Id_Io, Utils;
procedure Test_Socket is
    Adr : Transport_Defs.Host_Id (1 .. 4) := (1, 1, 1, 1);
    Socket : Transport_Defs.Socket_Id (1 .. 2) := (10, 49);
    Status : Boolean := False;
begin
    Com_Storage_Socket.Manager_Socket.Search (Adr, Socket, Status);
    Text_Io.Put_Line (Boolean'Image (Status));
    Adr := (1, 1, 1, 1);
    Socket := (10, 49);
    Text_Io.Put ("My Socket : ");
    Text_Io.Put_Line (Utils.Byte_String_To_String
                         (Byte_Defs.Byte_String (Socket)));
    Text_Io.Put ("My Machine : ");
    Text_Io.Put_Line (Host_Id_Io.Image (Adr));
    Com_Storage_Socket.Manager_Socket.Write (Adr, Socket);
    Com_Storage_Socket.Manager_Socket.Search (Adr, Socket, Status);
    Text_Io.Put_Line (Boolean'Image (Status));
    Text_Io.Put ("My Socket : ");
    Text_Io.Put_Line (Utils.Byte_String_To_String
                         (Byte_Defs.Byte_String (Socket)));
    Text_Io.Put ("My Machine : ");
    Text_Io.Put_Line (Host_Id_Io.Image (Adr));
    Adr := (2, 2, 2, 2);
    Socket := (10, 48);
    Text_Io.Put ("My Socket : ");
    Text_Io.Put_Line (Utils.Byte_String_To_String
                         (Byte_Defs.Byte_String (Socket)));
    Text_Io.Put ("My Machine : ");
    Text_Io.Put_Line (Host_Id_Io.Image (Adr));
    Com_Storage_Socket.Manager_Socket.Write (Adr, Socket);
    Com_Storage_Socket.Manager_Socket.Search (Adr, Socket, Status);
    Text_Io.Put_Line (Boolean'Image (Status));
    Text_Io.Put ("My Socket : ");
    Text_Io.Put_Line (Utils.Byte_String_To_String
                         (Byte_Defs.Byte_String (Socket)));
    Text_Io.Put ("My Machine : ");
    Text_Io.Put_Line (Host_Id_Io.Image (Adr));
end Test_Socket;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=17 rec1=00 rec2=01 rec3=006
        [0x01] rec0=12 rec1=00 rec2=02 rec3=001
    tail 0x21760cba887c0496f0756 0x42a00088462060003