|
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 - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Orb, seg_052f55
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Transport; with Transport_Defs; with Byte_Defs; with Utils; with Text_Io; package body Orb is procedure Emission is Connection : Transport.Connection_Id; Status : Transport_Defs.Status_Code; Our_Network : constant Transport_Defs.Network_Name := "TCP/IP"; Our_Message : constant Byte_Defs.Byte_String := Utils.String_To_Byte_String ("Hello"); Count : Natural; begin Text_Io.Put_Line ("Emetteur"); -- Text_Io.Put_Line (Utils.Byte_String_To_String (Our_Message)); Transport.Open (Connection, Status, Our_Network); if Transport.Is_Open (Connection) then Text_Io.Put_Line ("Connection emission open"); end if; -- while not Transport.Is_Connected (Connection) loop -- Text_Io.Put_Line ("reconnection"); Transport.Connect (Connection, Status, Transport.Local_Host (Connection), (2, 6, 0, 0), 5.0); -- end loop; Text_Io.Put_Line ("Our_Message is transmitting..."); Transport.Transmit (Connection, Status, Our_Message, Count); Text_Io.Put_Line (Utils.Byte_String_To_String (Our_Message) & " has been transmitted " & Natural'Image (Count)); delay (30.0); Transport.Disconnect (Connection); Text_Io.Put_Line ("Connection close"); Transport.Close (Connection); end Emission; procedure Reception is Connection : Transport.Connection_Id; Status : Transport_Defs.Status_Code; Our_Network : constant Transport_Defs.Network_Name := "TCP/IP"; Local_Socket : Transport_Defs.Socket_Id (1 .. 4) := (2, 6, 0, 0); Our_Message : Byte_Defs.Byte_String (0 .. 255); Count : Natural; begin Text_Io.Put_Line ("Recepteur"); Transport.Open (Connection, Status, Our_Network, Local_Socket); if Transport.Is_Open (Connection) then Text_Io.Put_Line ("Connection reception open"); end if; -- while not Transport.Is_Connected (Connection) loop Transport.Connect (Connection, Status, 5.0); -- end loop; Text_Io.Put_Line ("Our_Message is receiving..."); Transport.Receive (Connection, Status, Our_Message, Count); Text_Io.Put_Line (Utils.Byte_String_To_String (Our_Message) & " has been received "); Transport.Disconnect (Connection); Text_Io.Put_Line ("Connection close"); Transport.Close (Connection); end Reception; end Orb;
nblk1=4 nid=3 hdr6=6 [0x00] rec0=1d rec1=00 rec2=01 rec3=014 [0x01] rec0=17 rec1=00 rec2=02 rec3=08e [0x02] rec0=22 rec1=00 rec2=04 rec3=000 [0x03] rec0=1e rec1=00 rec2=03 rec3=000 tail 0x2175aa93087a887e1d8f5 0x42a00088462060003 Free Block Chain: 0x3: 0000 00 00 02 22 80 22 70 6f 72 74 2e 43 6f 6e 6e 65 ┆ " "port.Conne┆