Specification of package Corba.Transport.Tcp







 ========================================================================= --
 ===                                                                   === --
 ===                 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.Ios.File_Ios.Socket_Ios ;

package Corba.Transport.Tcp is
   Name : Protocol_Name := "TCP" ;
   Id   : constant := 0 ;

  package Socket_Ios renames Tgx.Ios.File_Ios.Socket_Ios ;

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

    To get the IP address string of a host name
   function Ip_Name (Host_Name : in Standard.String) return Standard.String ;

    Build the URL from host and port
   function Url ( Host_Name : in Standard.String ;
                  Port      : in Socket_Ios.Port ) return Standard.String ;

    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 ;

    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 ;
   
end Corba.Transport.Tcp ;



List of definition uses










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