1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
7 use lib
"$ENV{ACE_ROOT}/bin";
8 use PerlACE
::TestTarget
;
14 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
16 # configuration not passed to the server by the command line but the server
18 my $svcconf = "multi_prot.conf";
19 my $server_svcfile = $server->LocalFile ($svcconf);
20 if ($server->PutFile ($svcconf) == -1) {
21 print STDERR
"ERROR: cannot set file <$server_svcfile>\n";
26 $iiopSV = $server->CreateProcess ("server", "-ORBDottedDecimalAddresses 0 -ORBUseSharedProfile 1 -h default -p $port");
28 print "Starting server using only IIOP\n";
30 $result = $iiopSV->SpawnWaitKill ($server->ProcessStartWaitInterval());
33 print STDERR
"ERROR: IIOP-only server returned $result\n";
37 print "Starting server using multiple protocols\n";
39 $multiSV = $server->CreateProcess ("server", "-ORBDottedDecimalAddresses 0 -ORBUseSharedProfile 0 -h multi -p $port");
41 $result = $multiSV->SpawnWaitKill($server->ProcessStartWaitInterval());
44 print STDERR
"ERROR: multiprotocol server returned $result\n";