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

⟦ad10ea8e5⟧ Ada Source

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

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 Message_Transport;
with Text_Io;
procedure Message_Server_Test is

    procedure Register (Host : String; Socket : Message_Transport.Socket) is
    begin
        Text_Io.Put_Line ("Host => " & Host);
        Text_Io.Put_Line ("socket => " & Integer'Image (Integer ((Socket))));
    end Register;


    function Always_True (S : String) return Boolean is
    begin
        return True;
    end Always_True;


    procedure Ready_To_Receive is
    begin
        null;
    end Ready_To_Receive;


    procedure Process_Message (M : String) is
    begin
        Text_Io.Put_Line ("process message => " & M);
    end Process_Message;


    procedure Start is new Message_Transport.Start_Server
                              (Register_Service => Register,
                               Service_Identified => Always_True,
                               Ready_To_Receive => Ready_To_Receive,
                               Receive_Callback => Process_Message);
begin

    Start (Local_Socket => 2605, Buffer_Size => 1024);

end Message_Server_Test;
pragma Main;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=23 rec1=00 rec2=01 rec3=074
        [0x01] rec0=07 rec1=00 rec2=02 rec3=001
    tail 0x2154bb52087a15b162c38 0x42a00088462060003