2 //=============================================================================
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
>
27 enum Connection_Status
33 enum Completion_Status
40 Svc_Handler (bool is_ref_counted
= false);
42 void connection_status (Connection_Status
&status
,
43 int &completion_counter
);
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 */