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

⟦a87aadf02⟧ Ada Source

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

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 Communication;
with Com_Chanel;
with Var_String;  
with Text_Io;
procedure Com_Send_Test is  
    S : Communication.Status_Code;
    C : Com_Chanel.Object;

begin
    Text_Io.Put_Line ("Test Avant  Communication.Init");
    Communication.Init (Chanel => Com_Chanel.Null_Object, Status => S);
    C := Communication.Get_Chanel;
    Text_Io.Put_Line ("Status:" & Communication.Status_Code'Image (S));
    Text_Io.Put_Line ("chanel:" & Var_String.Image (Com_Chanel.Image (C)));

    delay (10.0);
    Text_Io.Put_Line ("Emission du message toto");
    Communication.Send (Message => Var_String.Value ("toto est bien"),
                        Remote_Host => (193, 54, 146, 132),
                        Remote_Socket => (10, 41),
                        Status => S);
    Text_Io.Put_Line ("Status:" & Communication.Status_Code'Image (S));

    Text_Io.Put_Line ("Emission du message tata");
    Communication.Send (Message => Var_String.Value ("tata est bien mieux"),
                        Remote_Host => (193, 54, 146, 132),
                        Remote_Socket => (10, 41),
                        Status => S);
    Text_Io.Put_Line ("Status:" & Communication.Status_Code'Image (S));

    Text_Io.Put_Line ("Emission du message tutu");
    Communication.Send
       (Message =>
           Var_String.Value
              ("tutu est bien 1234567890123456789012345678901234567890912345678901234567890ABCDEFGHIJKLMNOPQRSTUVW"),
        Remote_Host => (193, 54, 146, 132),
        Remote_Socket => (10, 41),
        Status => S);
    Text_Io.Put_Line ("Status:" & Communication.Status_Code'Image (S));
end Com_Send_Test;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1a rec1=00 rec2=01 rec3=090
        [0x01] rec0=10 rec1=00 rec2=02 rec3=001
    tail 0x2176347fe87c553e6a715 0x42a00088462060003