Click here to Skip to main content
11,484,752 members (64,937 online)
Click here to Skip to main content
Add your own
alternative version

Mixing ACE/TAO and .NET Clients and Servers

, 13 Dec 2005 CPOL 61.1K 1.6K 44
Demonstrates mixing C++ ACE/TAO clients and servers with C# IIOP.NET clients and servers on Windows and Linux.
iiopnetandtaobinaries.zip
IIOPNetandTAOBinaries
ForWindows
DotNetAdderClient.exe
DotNetAdderServer.exe
DotNetNSAdderClient.exe
DotNetNSAdderServer.exe
IIOPChannel.dll
IIOPExampleInterfaces.dll
nslister.exe
TAOAdderClient.exe
TAOAdderServer.exe
TAODirectAdderClient.exe
iiopnetandtaosource.zip
IIOPNetandTAOSource
CPlusCode
gnuace
TAOAdder.mpc
VS71
ExampleInterfacesC.inl
ExampleInterfacesS.inl
ExampleInterfacesS_T.inl
TAOAdder.mpc
CSharpCode
DotNetAdderClient
App.ico
DotNetAdderClient.csproj.user
DotNetAdderServer
App.ico
DotNetAdderServer.csproj.user
DotNetNSAdderClient
App.ico
DotNetNSAdderClient.csproj.user
DotNetNSAdderServer
App.ico
DotNetNSAdderServer.csproj.user
IIOPChannel.dll
IIOPExampleInterfaces
IIOPExampleInterfaces.csproj.user
nslister
nslister.mpc
nslisterC.inl
nslisterS.inl
nslisterS_T.inl
// -*- C++ -*-
//
// $Id$

// ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
// TAO and the TAO IDL Compiler have been developed by:
//       Center for Distributed Object Computing
//       Washington University
//       St. Louis, MO
//       USA
//       http://www.cs.wustl.edu/~schmidt/doc-center.html
// and
//       Distributed Object Computing Laboratory
//       University of California at Irvine
//       Irvine, CA
//       USA
//       http://doc.ece.uci.edu/
// and
//       Institute for Software Integrated Systems
//       Vanderbilt University
//       Nashville, TN
//       USA
//       http://www.isis.vanderbilt.edu/
//
// Information about TAO is available at:
//     http://www.cs.wustl.edu/~schmidt/TAO.html

// TAO_IDL - Generated from
// .\be\be_codegen.cpp:391

#ifndef _TAO_IDL_NSLISTERS_H_
#define _TAO_IDL_NSLISTERS_H_

#include /**/ "ace\pre.h"

#include "nslisterC.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/Collocation_Proxy_Broker.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/PortableServer/Servant_Base.h"

#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */

#if defined (__BORLANDC__)
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */

// TAO_IDL - Generated from
// c:\local\ace\tao\tao_idl\be\be_visitor_module/module_sh.cpp:49

namespace POA_TaoTester
{
  
  
  // TAO_IDL - Generated from
  // c:\local\ace\tao\tao_idl\be\be_visitor_interface/interface_sh.cpp:87
  
  class IExampleZero;
  typedef IExampleZero *IExampleZero_ptr;
  
  
  class  IExampleZero
    : public virtual PortableServer::ServantBase
  {
  protected:
    IExampleZero (void);
  
  public:
    // Useful for template programming.
    typedef ::TaoTester::IExampleZero _stub_type;
    typedef ::TaoTester::IExampleZero_ptr _stub_ptr_type;
    typedef ::TaoTester::IExampleZero_var _stub_var_type;
    
    IExampleZero (const IExampleZero& rhs);
    virtual ~IExampleZero (void);
    
    virtual CORBA::Boolean _is_a (
        const char* logical_type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static void _is_a_skel (
        TAO_ServerRequest & req,
        void * servant_upcall,
        void * servant
        ACE_ENV_ARG_DECL
      );
    
    static void _non_existent_skel (
        TAO_ServerRequest & req,
        void * servant_upcall,
        void * servant
        ACE_ENV_ARG_DECL
      );
    
    static void _interface_skel (
        TAO_ServerRequest & req,
        void * servant_upcall,
        void * servant
        ACE_ENV_ARG_DECL
      );
    
    static void _component_skel (
        TAO_ServerRequest & req,
        void * servant_upcall,
        void * servant
        ACE_ENV_ARG_DECL
      );
    
    static void _repository_id_skel (
        TAO_ServerRequest & req,
        void * servant_upcall,
        void * servant
        ACE_ENV_ARG_DECL
      );
    
    virtual void _dispatch (
        TAO_ServerRequest & req,
        void * servant_upcall
        ACE_ENV_ARG_DECL
      );
    
    ::TaoTester::IExampleZero *_this (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    
    // TAO_IDL - Generated from
    // c:\local\ace\tao\tao_idl\be\be_visitor_operation/operation_sh.cpp:45
    
    virtual void SetString (
        const char * inString
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    static void SetString_skel (
        TAO_ServerRequest & server_request,
        void * servant_upcall,
        void * servant
        ACE_ENV_ARG_DECL
      );
  };

// TAO_IDL - Generated from
// c:\local\ace\tao\tao_idl\be\be_visitor_module/module_sh.cpp:80

} // module TaoTester

// TAO_IDL - Generated from 
// .\be\be_codegen.cpp:995

#include "nslisterS_T.h"

#if defined (__ACE_INLINE__)
#include "nslisterS.inl"
#endif /* defined INLINE */

#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */

#if defined (__BORLANDC__)
#pragma option pop
#endif /* __BORLANDC__ */

#include /**/ "ace\post.h"
#endif /* ifndef */

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Stephen Bogner
Engineer Defence R&D Canada
Canada Canada
Stephen Bogner is a Senior Research Engineer with Defence R&D Canada. As the Head Autonomous Applications Group, Autonomous Intelligent Systems Section, he only programs when it can't be avoided, and then only in C#.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150520.1 | Last Updated 13 Dec 2005
Article Copyright 2005 by Stephen Bogner
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid