|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Transmission, seg_051f05
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Text_Io;
with Transport;
with Transport_Defs;
with Byte_Defs;
with Utils;
package body Transmission is
task Recep;
task body Recep is
Iterateur1 : Transport.Network_Name_Iterator;
Net : constant Transport_Defs.Network_Name := "essai";
Connexion1 : Transport.Connection_Id;
Status1 : Transport_Defs.Status_Code;
Donnee : Byte_Defs.Byte_String (0 .. 255);
Cpt : Natural;
begin
Transport.Open (Connexion1, Status1, "TCP/IP", (2, 6, 0, 2));
if Transport.Is_Open (Connexion1) then
Text_Io.Put_Line ("ouverture recep ok");
else
Text_Io.Put_Line ("pas bon ouverture recep...");
end if;
Transport.Connect (Connexion1, Status1);
if Transport.Is_Connected (Connexion1) then
Text_Io.Put_Line ("connection recep ok");
else
Text_Io.Put_Line ("pas bon connection recep...");
end if;
loop
Transport.Receive (Connexion1, Status1, Donnee, Cpt);
Text_Io.Put_Line (Utils.Byte_String_To_String (Donnee));
end loop;
Transport.Close (Connexion1);
end Recep;
task Emet;
task body Emet is
Net : constant Transport_Defs.Network_Name := "essai";
Connexion1 : Transport.Connection_Id;
Status1 : Transport_Defs.Status_Code;
Donnee : Byte_Defs.Byte_String (0 .. 255);
Cpt : Natural;
begin
Donnee := Utils.String_To_Byte_String ("Essai de connection");
Transport.Open (Connexion1, Status1, "TCP/IP");
if Transport.Is_Open (Connexion1) then
Text_Io.Put_Line ("ouverture emet ok");
else
Text_Io.Put_Line ("pas bon ouverture emet ...");
end if;
Transport.Connect (Connexion1, Status1,
(193, 54, 145, 28), (2, 6, 0, 2));
if Transport.Is_Connected (Connexion1) then
Text_Io.Put_Line ("connection emet ok");
else
Text_Io.Put_Line ("pas bon connection emet ...");
end if;
Transport.Transmit (Connexion1, Status1, Donnee, Cpt);
Transport.Close (Connexion1);
end Emet;
end Transmission;
nblk1=4
nid=3
hdr6=6
[0x00] rec0=1f rec1=00 rec2=01 rec3=008
[0x01] rec0=19 rec1=00 rec2=04 rec3=05c
[0x02] rec0=09 rec1=00 rec2=02 rec3=000
[0x03] rec0=04 rec1=00 rec2=02 rec3=000
tail 0x217596c8a879c978aa045 0x42a00088462060003
Free Block Chain:
0x3: 0000 00 00 01 26 80 30 20 20 20 20 20 20 20 20 54 65 ┆ & 0 Te┆