Specification of package Corba.Transport.Shm_Eorb







 ========================================================================= --
 ===                                                                   === --
 ===                 Top Graph'X CORBA Implementation                  === --
 ===                                                                   === --
 ===                 Copyright (c) 2001, Top Graph'X.                  === --
 ===                                                                   === --
 ===                     --- Copyright Notice ---                      === --
 ===                                                                   === --
 ===    This software is protected as an unpublished work under the    === --
 ===     Copyright Act of 1976.  All rights reserved.  Top Graph'X.    === --
 ===                                                                   === --
 ========================================================================= --

with Tgx.Shared_Memory_Eorb ;
with Corba.Iop ;
package Corba.Transport.Shm_Eorb is
    EORB
   Name : constant Protocol_Name := "SVS" ;
    EORB
   EORB_TAG_SVSHMIOP : constant := 16#58500001# ;   EORB_TAG_SVSHMIOP defini dans
                                                    eorb30/include/eOrbC/common/tags.h
   Id   : constant := EORB_TAG_SVSHMIOP ;

   type Object is new Corba.Transport.Connected with null record ;
   type Object_Ptr is access all Object'class ;

    Build the URL from Host, Shm_Id and Server
   function Url ( Host_Name : in Standard.String ;
                  Shm_Id    : in Tgx.Shared_Memory_Eorb.Memory_Id ;
                  Server    : in Tgx.Shared_Memory_Eorb.Process_Id )
     return Standard.String ;

    Create a server connection corresponding to the given URL
   function Create_Server ( Self : access Object ;
                            Url  : in Standard.String)
      return Tgx.Ios.Io_Server_Access ;

    Create a data connection corresponding to the given URL
   function Connection ( Self : access Object ;
                         Url  : in Standard.String)
      return Tgx.Ios.Io_Connection_Access ;

    Build the transport IOR profile header for the given URL
    It is aligned on a four-bytes boundary and contains only the transport
    information (e.g. host name and TCP port number for IIOP profile)
   function Get_Profile_Header
      ( Self   : access Object ;
        Url    : in Standard.String )
      return Corba_Ios.Stream_Element_Array ;

    Extract the URL from the IOR stream
    Index is aligned on a four-bytes boundary and points at the beginning
    of the transport information
    (e.g. host name and TCP port number for IIOP profile)
    Index is updated to the last byte index of the transport information
   function Get_Url ( Self   : access Object ;
                      Swap   : in Boolean ;  Indicate the need to swap bytes
                      Data   : in Corba_Ios.Stream_Element_Array ;
                      Index  : access Corba_Ios.Stream_Element_Offset)
      return Standard.String ;

end Corba.Transport.Shm_Eorb ;



List of definition uses










This page was generated by PrismTech's ada2html on Friday Mai 12 2006 16:18