|
|
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, procedure Emission, seg_054764
└─⟦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 Transport_Name;
with Byte_Defs;
with Utils;
with String_Utilities;
with Bounded_String;
with Trame;
procedure Emission is
Connection : Transport.Connection_Id;
Status : Transport_Defs.Status_Code;
Network : constant Transport_Defs.Network_Name := "TCP/IP";
Local_Socket : Transport_Defs.Socket_Id (1 .. 4);
Host_Ficus : Transport_Defs.Host_Id (1 .. 4);
Count : Natural;
Max_Wait : Duration := 6000.0; --Duree d'attente max.: 6000 secondes
More_Data : Boolean := False;
Index : Integer;
Codage : Integer;
Nbr : Integer;
Str_Temp : String (1 .. 1024);
Test : Boolean;
package Mon_Integer_Io is new Text_Io.Integer_Io (Integer);
begin
Local_Socket := Trame.Donne_Socket (Trame.Fait_Host_Socket (2, 6, 0, 6));
Host_Ficus := Trame.Donne_Host (Trame.Fait_Host_Socket (193, 54, 146, 133));
Text_Io.New_Line;
Text_Io.Put ("Entrer l Index (puis F8): ");
Text_Io.Get_Line (Str_Temp, Nbr);
Str_Temp (Nbr + 1) := Ascii.Nul;
String_Utilities.String_To_Number
(Trame.Convert_String (Str_Temp), Index, Test, 10);
Text_Io.New_Line;
Text_Io.Put ("Entrer le Codage (puis F8): ");
Text_Io.Get_Line (Str_Temp, Nbr);
Str_Temp (Nbr + 1) := Ascii.Nul;
String_Utilities.String_To_Number
(Trame.Convert_String (Str_Temp), Codage, Test, 10);
Text_Io.New_Line;
Text_Io.Put ("Entrer la Commande (puis F8): ");
Text_Io.Get_Line (Str_Temp, Nbr);
Str_Temp (Nbr + 1) := Ascii.Nul;
Transport.Open (Connection, Status, Network);
if Transport.Is_Open (Connection) then
Text_Io.New_Line;
Text_Io.Put_Line ("OK: La connection est ouverte...");
else
Text_Io.New_Line;
Text_Io.Put_Line ("ERREUR: La connection n'est pas ouverte...");
end if;
Text_Io.Put_Line ("Je tente de me connecter...");
Transport.Connect (Connection, Status, Host_Ficus, Local_Socket, Max_Wait);
if Transport.Is_Connected (Connection) then
Text_Io.Put_Line ("OK: On est connecte...");
else
Text_Io.Put_Line ("ERREUR: On n'est pas connecte..");
end if;
Text_Io.Put_Line ("Je tente de transmettre le message...");
Transport.Transmit
(Connection, Status,
Trame.Fait_Trame
(Index, Trame.Fait_Host (Host_Ficus),
Trame.Fait_Socket (Local_Socket),
Bounded_String.Value
(String_Utilities.Number_To_String (Codage, 10, 0, ' ') &
Ascii.Nul),
Bounded_String.Value (Trame.Convert_String (Str_Temp) & Ascii.Nul)),
Count, Max_Wait, More_Data);
Text_Io.Put (Integer'Image (Count));
Text_Io.Put_Line (" caracteres ont ete envoyes.");
Transport.Disconnect (Connection);
if Transport.Is_Connected (Connection) then
Text_Io.Put_Line ("ERREUR: On est encore connecte...");
else
Text_Io.Put_Line ("OK: On n'est plus connecte..");
end if;
Transport.Close (Connection);
if Transport.Is_Open (Connection) then
Text_Io.Put_Line ("ERREUR: La connection n'est pas fermee...");
else
Text_Io.Put_Line ("OK: La connection est maintenant fermee...");
end if;
end Emission;
nblk1=4
nid=0
hdr6=8
[0x00] rec0=23 rec1=00 rec2=01 rec3=01e
[0x01] rec0=19 rec1=00 rec2=02 rec3=016
[0x02] rec0=19 rec1=00 rec2=03 rec3=04e
[0x03] rec0=0d rec1=00 rec2=04 rec3=000
tail 0x2175d8b2487b8856b8b46 0x42a00088462060003