summaryrefslogtreecommitdiff
path: root/TAO/tests/TransportCurrent/IIOP/IIOP_Server_Main.cpp
blob: c4ed3e82c241716dc3c41d9444241cd5d05d7006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// -*- C++ -*-

// $Id$

#include "IIOP_Server_Request_Interceptor.h"

/// Prototype
int server_main (int argc,
                 ACE_TCHAR *argv[],
                 Test::Server_Request_Interceptor *cri);

int
test_transport_current (CORBA::ORB_ptr orb);

int
ACE_TMAIN (int argc,
           ACE_TCHAR *argv[])
{
  Test::IIOP_Server_Request_Interceptor* cri = 0;
  ACE_NEW_RETURN (cri,
                  Test::IIOP_Server_Request_Interceptor ("test_orb",
                                                         test_transport_current),
                  -1);
  PortableInterceptor::ServerRequestInterceptor_var cri_safe (cri);

  return server_main (argc, argv, cri);
}