summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp
blob: f278cf08e3af48b52b798487351db845116621c7 (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
28
29
30
31
32
33
34
35
36
37
38
39
// $Id$

#include "test_i.h"

#if !defined(__ACE_INLINE__)
#include "test_i.inl"
#endif /* __ACE_INLINE__ */

ACE_RCSID (Send_File,
           test_i,
           "$Id$")

void
Simple_Server_i::send_line (const char *)
    ACE_THROW_SPEC ((CORBA::SystemException))
{

  /*
  static unsigned long count = 0;

  count++;

  if (count == 1)
  {
    ACE_DEBUG ((LM_DEBUG,
                "Executed 128 requests. Now it's time to crash!\n"));
    ACE_OS::abort ();
  }
  */

  // ACE_DEBUG ((LM_DEBUG, "%s\n", line));
}

void
Simple_Server_i::shutdown (void)
    ACE_THROW_SPEC ((CORBA::SystemException))
{
  this->orb_->shutdown (0);
}