|
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: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Communic1, seg_0546ac
└─⟦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; procedure Communic1 is Connect : Transport.Connection_Id; Status : Transport_Defs.Status_Code; Count : Natural; Data : Byte_Defs.Byte_String (1 .. 255); begin Transport.Open (Connect, Status, "TCP/IP"); if Transport.Is_Open (Connect) then Text_Io.Put_Line ("open ok"); end if; while not Transport.Is_Connected (Connect) loop Transport.Connect (Connect, Status, (193, 54, 146, 133), (2, 6, 1, 5), Duration'Last); end loop; if Transport.Is_Connected (Connect) then Text_Io.Put_Line ("test connect ok"); end if; Transport.Transmit (Connect, Status, Utils.String_To_Byte_String ("coucou hello world+++++"), Count); Text_Io.Put_Line ("transmit"); Transport.Receive (Connect, Status, Data, Count); Text_Io.Put_Line (Utils.Byte_String_To_String (Data)); Transport.Disconnect (Connect); Text_Io.Put_Line ("fin com1"); end Communic1;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=21 rec1=00 rec2=01 rec3=032 [0x01] rec0=08 rec1=00 rec2=02 rec3=000 tail 0x2175d7ef087b8847e70e6 0x42a00088462060003