|
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, package body Sb_Client, seg_05495a
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Transport, Transport_Defs, Text_Io, Utils, Byte_Defs; package body Sb_Client is Connection : Transport.Connection_Id; Status : Transport_Defs.Status_Code; Network_Name : constant Transport_Defs.Network_Name := "TCP/IP"; Count : Natural; Receive_Data : Byte_Defs.Byte_String (1 .. 4); Socket : constant Transport_Defs.Socket_Id (1 .. 4) := (2, 6, 0, 9); procedure Speak is begin loop Transport.Open (Connection, Status, Network_Name, Socket); Text_Io.Put_Line (Transport_Defs.Image (Status)); exit when Transport.Is_Open (Connection) = True; end loop; Text_Io.Put_Line (Transport_Defs.Image (Status)); Text_Io.Put_Line ("Client : Open is OK"); loop Transport.Connect (Connection, Status, Duration'Last); exit when Transport.Is_Connected (Connection) = True; end loop; Text_Io.Put_Line (Transport_Defs.Image (Status)); Text_Io.Put_Line (" Client : Connection is OK"); Transport.Receive (Connection, Status, Receive_Data, Count, Duration'Last); Text_Io.Put_Line ("Client : Receive_Data"); Text_Io.Put_Line (Transport_Defs.Image (Status)); Text_Io.Put_Line (Utils.Byte_String_To_String (Receive_Data)); Transport.Disconnect (Connection); Text_Io.Put_Line ("Client : Disconnect is OK"); end Speak; end Sb_Client;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=1a rec1=00 rec2=01 rec3=05a [0x01] rec0=0e rec1=00 rec2=02 rec3=000 tail 0x2175da97c87b8879d914c 0x42a00088462060003