summaryrefslogtreecommitdiff
path: root/TAO/tests/Nested_Upcall_Crash/Server_Peer.h
blob: a165d5372b542153e972127cbd919f2c7ca2967e (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
/**
 * @file Server_Peer.h
 *
 * $Id$
 *
 * @author Carlos O'Ryan <coryan@atdesk.com>
 *
 */
#ifndef Server_Peer__h_
#define Server_Peer__h_

#include "TestS.h"

class Server_Peer
  : public POA_Test::Peer
{
public:
  Server_Peer (ACE_RANDR_TYPE seed,
               CORBA::ORB_ptr orb,
               CORBA::ULong payload_size);

  void callme(Test::Peer_ptr callback,
              CORBA::ULong max_depth,
              Test::Payload const & extra_data)
    ACE_THROW_SPEC((CORBA::SystemException));
  void crash(void)
    ACE_THROW_SPEC((CORBA::SystemException));
  void noop(void)
    ACE_THROW_SPEC((CORBA::SystemException));

private:
  ACE_RANDR_TYPE seed_;

  CORBA::ORB_var orb_;

  CORBA::ULong payload_size_;
};

#endif /* Server_Peer__h_ */