|
|
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: 4096 (0x1000)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, function Get, seg_02915a, separate Message
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
separate (Message)
function Get (Local_Socket : Socket; Buffer_Size : Positive) return String is
C : T.Connection_Id;
S : T_Defs.Status_Code;
N : constant T_Defs.Network_Name := "TCP/IP";
Lsid : constant Transport_Defs.Socket_Id :=
(Byte_Defs.Byte (Local_Socket / 256),
Byte_Defs.Byte (Local_Socket mod 256));
Cnt : Positive;
Buffer : Byte_Defs.Byte_String (1 .. Buffer_Size);
begin
T.Open (Connection => C, Status => S, Network => N, Local_Socket => Lsid);
if S /= Transport_Defs.Ok then
return "";
end if;
T.Connect (C, S);
if S /= Transport_Defs.Ok then
return "";
end if;
T.Receive (Connection => C,
Status => S,
Data => Buffer,
Count => Cnt,
Max_Wait => Duration'Last);
if S /= Transport_Defs.Ok then
return "";
end if;
T.Close (Connection => C);
return Utils.Byte_String_To_String (Buffer (1 .. Cnt));
end Get;
nblk1=3
nid=2
hdr6=4
[0x00] rec0=28 rec1=00 rec2=01 rec3=01a
[0x01] rec0=04 rec1=00 rec2=03 rec3=001
[0x02] rec0=0a rec1=00 rec2=00 rec3=004
tail 0x2152165c883c94d0719ba 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 00 03 fb 80 08 20 28 43 2c 20 53 29 3b 08 00 ┆ (C, S); ┆