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

⟦599e1e022⟧ Ada Source

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

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 Message;
with Message_Transport;
with Text_Io;

use Text_Io;
package body Message_Server_Test is

    procedure Process_Message (M : String);

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

    function Stub (M : String) return Boolean is
    begin
        return True;
    end Stub;

    procedure Stub is
    begin
        null;
    end Stub;

    procedure Transport_Start is
       new Message_Transport.Start_Server (Register_Service => Register,
                                           Service_Identified => Stub,
                                           Ready_To_Receive => Stub,
                                           Receive_Callback => Process_Message);


    procedure Start (Socket : Integer := 2606) is
    begin
        Transport_Start (Local_Socket => Message_Transport.Socket (Socket),
                         Buffer_Size => 1024,
                         Wait_For_Identification => False);
    end Start;


    procedure Process_Message (M : String) is
    begin
        Put_Line (Message.Image (Message.Value (M)));
    end Process_Message;


end Message_Server_Test;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=0a0
        [0x01] rec0=12 rec1=00 rec2=02 rec3=001
    tail 0x21759a3be87a0632cf611 0x42a00088462060003