Ada Programming/Libraries/System.RPC
This language feature is available from Ada 95 on.
System. is a unit of the Predefined Language Environment since Ada 95.
Specification
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual -- -------------------------------------------------------------------------withAda.Streams; -- see 13.13.1packageSystem.istypePartition_Idisrange0 .. implementation_defined; Communication_Error :exception;typeParams_Stream_Type (Initial_Size : Ada.Streams.Stream_Element_Count)isnewAda.Streams.Root_Stream_Typewithprivate;procedureRead (Stream :inoutParams_Stream_Type; Item :outAda.Streams.Stream_Element_Array; Last :outAda.Streams.Stream_Element_Offset);procedureWrite (Stream :inoutParams_Stream_Type; Item :inAda.Streams.Stream_Element_Array); -- Synchronous callprocedureDo_RPC (Partition :inPartition_Id; Params :accessParams_Stream_Type; Result :accessParams_Stream_Type); -- Asynchronous callprocedureDo_APC (Partition :inPartition_Id; Params :accessParams_Stream_Type); -- The handler for incoming RPCstypeRPC_Receiverisaccessprocedure(Params :accessParams_Stream_Type; Result :accessParams_Stream_Type);procedureEstablish_RPC_Receiver (Partition :inPartition_Id; Receiver :inRPC_Receiver);privatepragmaImport (Ada, Params_Stream_Type);endSystem.RPC;
See also
Wikibook
External examples
- Search for examples of
System.RPCin: Rosetta Code, GitHub (gists), any Alire crate or this Wikibook. - Search for posts related to
System.RPCin: Stack Overflow, comp.lang.ada or any Ada related page.
Ada Reference Manual
Ada 95
Ada 2005
Ada 2012
Open-Source Implementations
FSF GNAT