|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 3103 (0xc1f)
Types: TextFile
Names: »B«
└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
└─⟦124ff5788⟧ »DATA«
└─⟦this⟧
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
└─⟦129cab021⟧ »DATA«
└─⟦this⟧
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
└─⟦6f12a12be⟧ »DATA«
└─⟦this⟧
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
└─⟦d65440be7⟧ »DATA«
└─⟦this⟧
with Logger_Interface;
with System_Interface;
with Text_Io;
with Transport_Interchange;
with Unix_Base_Types;
with System;
with Xt_Interface;
package body Rs6000_Server is
package Li renames Logger_Interface;
procedure Process_Call (Stream : Transport_Stream.Stream_Id;
Id : Rpc.Transaction_Id;
Version : Rpc.Version_Number;
Proc : Rpc.Procedure_Number) is
begin
case Proc is
when Rpc_Defs.Proc_Number.Initialize =>
Text_Io.Put_Line ("initializing toolkit ");
Rpc_Server.Begin_Response (Stream, Id);
Xt_Interface.Initialize;
when Rpc_Defs.Proc_Number.Xterm.Create =>
Text_Io.Put_Line ("creating xterm on host " &
Transport_Interchange.Get_String (Stream));
-- Text_Io.Put_Line ("create display " &
-- Transport_Interchange.Get_String (Stream));
Rpc_Server.Begin_Response (Stream, Id);
when Rpc_Defs.Proc_Number.Xterm.Close =>
Text_Io.Put_Line ("close xterm ");
Rpc_Server.Begin_Response (Stream, Id);
when Rpc_Defs.Proc_Number.Xterm.Put =>
Text_Io.Put_Line ("put xterm " &
Transport_Interchange.Get_String (Stream));
Rpc_Server.Begin_Response (Stream, Id);
when Rpc_Defs.Proc_Number.Log.Create =>
Li.Create;
Text_Io.Put_Line ("created log on host " &
Transport_Interchange.Get_String (Stream));
Rpc_Server.Begin_Response (Stream, Id);
when Rpc_Defs.Proc_Number.Log.Close =>
Li.Close;
Text_Io.Put_Line ("closed log ");
Rpc_Server.Begin_Response (Stream, Id);
when Rpc_Defs.Proc_Number.Log.Put =>
Li.Put (Transport_Interchange.Get_String (Stream));
Rpc_Server.Begin_Response (Stream, Id);
when others =>
raise Rpc.No_Such_Procedure;
end case;
end Process_Call;
procedure Start is
begin
Text_Io.Put_Line ("start");
Xt_Interface.Process_Event;
end Start;
procedure Finish is
begin
--Text_Io.Put_Line ("finish");
--Xt_Interface.Dispatch_Event;
null;
end Finish;
procedure Serve_Gets is new Rpc_Server.Serve
(Program => Rpc_Defs.Program,
Supported => (0, Rpc.Version_Number'Last),
Process_Call => Process_Call,
Initialize => Xt_Interface.Initialize,
Main_Loop_Preprocess => Start,
Main_Loop_Postprocess => Finish);
procedure Serve (Connection : Transport.Connection_Id) is
begin
Serve_Gets (Connection);
end Serve;
end Rs6000_Server;