Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / tests / NonBlocking_Conn_Test.h
blobb31b9544cfceb55cca802e653190cef45d616c62
2 //=============================================================================
3 /**
4 * @file NonBlocking_Conn_Test.h
6 * This test checks for the proper working of the following:
7 * - blocking connections
8 * - blocking connections with timeouts
9 * - non-blocking connections
10 * - non-blocking connections without waiting for completions
11 * - non-blocking connections with timeouts
13 * @author Irfan Pyarali <irfan@oomworks.com>
15 //=============================================================================
18 #ifndef NONBLOCKING_CONN_TEST_H
19 #define NONBLOCKING_CONN_TEST_H
21 #include "ace/Svc_Handler.h"
22 #include "ace/SOCK_Stream.h"
24 class Svc_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>
26 public:
27 enum Connection_Status
29 Conn_SUCCEEDED,
30 Conn_FAILED
33 enum Completion_Status
35 Comp_YES,
36 Comp_NO,
37 Comp_IGNORE
40 Svc_Handler (bool is_ref_counted = false);
42 void connection_status (Connection_Status &status,
43 int &completion_counter);
45 int open (void *);
47 int handle_close (ACE_HANDLE handle,
48 ACE_Reactor_Mask mask);
50 Connection_Status *status_;
51 int *completion_counter_;
52 bool const is_ref_counted_;
55 #endif /* NONBLOCKING_CONN_TEST_H */