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

⟦27f41b0a1⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Open_Client, seg_0520f5, separate Transport

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



separate (Transport)
procedure Open_Client (Connection : out Transport.Connection_Id;
                       Status : out Transport_Defs.Status_Code;
                       Network : in Transport_Defs.Network_Name) is

    New_Connect : Connection_Id := Null_Connection_Id;
    Errno : Unix_Base_Types.Int;
    Network_Socket : Unix_Base_Types.Int;

begin


    Connection := Null_Connection_Id;
    Status := Transport_Defs.Ok;

    Start_System_Call;

    Network_Socket :=
       Socket_System_Interface.Socket
          (Af => Unix_Base_Types.Int (Socket_System_Interface.Af_Inet),
           Socket_Type => Socket_System_Interface.Sock_Stream,
           Protocol => 0);

    Errno := Finish_System_Call;

    if (Network_Socket < 0) then
        Status := Convert_Errno (Errno => Errno);
        return;
    end if;

    -- To reach this point, the Client has been successfully Opened
    -- We need to establish a connection_id with the correct
    -- information.

    New_Connect := Get;
    New_Connect.Kind := Client;
    New_Connect.Socket_Status := Open;
    New_Connect.Local_Socket_Descriptor := Network_Socket;
    New_Connect.Tcp_Socket_Descriptor := Unix_Error;

    Connection := New_Connect;

end Open_Client;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=078
        [0x01] rec0=0c rec1=00 rec2=02 rec3=000
    tail 0x2175994e487a05cb5ddfa 0x42a00088462060003