1 /*******************************************************************************
2 
3     Informational (i.e. non-destructive) interface to a select listener
4     connection pool.
5 
6     Copyright:
7         Copyright (c) 2009-2016 dunnhumby Germany GmbH.
8         All rights reserved.
9 
10     License:
11         Boost Software License Version 1.0. See LICENSE_BOOST.txt for details.
12         Alternatively, this file may be distributed under the terms of the Tango
13         3-Clause BSD License (see LICENSE_BSD.txt for details).
14 
15 *******************************************************************************/
16 
17 module ocean.net.server.connpool.ISelectListenerPoolInfo;
18 
19 
20 
21 
22 import ocean.net.server.connection.IConnectionHandlerInfo;
23 
24 import ocean.util.container.pool.model.IPoolInfo;
25 
26 
27 
28 public interface ISelectListenerPoolInfo : IPoolInfo
29 {
30     /***************************************************************************
31 
32         Convenience alias for implementing classes.
33 
34     ***************************************************************************/
35 
36     alias .IConnectionHandlerInfo IConnectionHandlerInfo;
37 
38 
39     /***************************************************************************
40 
41         foreach iterator over informational interfaces to the active connections
42         in the pool.
43 
44     ***************************************************************************/
45 
46     int opApply ( scope int delegate ( ref IConnectionHandlerInfo ) dg );
47 
48 
49     /***************************************************************************
50 
51         foreach iterator over informational interfaces to the active connections
52         in the pool, and their indices.
53 
54     ***************************************************************************/
55 
56     int opApply ( scope int delegate ( ref size_t, ref IConnectionHandlerInfo ) dg );
57 }
58