Mercurial > projects > ldc
comparison tango/tango/net/cluster/tina/util/model/IServer.d @ 132:1700239cab2e trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author | lindquist |
---|---|
date | Fri, 11 Jan 2008 17:57:40 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:5825d48b27d1 | 132:1700239cab2e |
---|---|
1 /******************************************************************************* | |
2 | |
3 copyright: Copyright (c) 2004 Kris Bell. All rights reserved | |
4 | |
5 license: BSD style: $(LICENSE) | |
6 | |
7 version: Initial release: April 2004 | |
8 | |
9 author: Kris | |
10 | |
11 *******************************************************************************/ | |
12 | |
13 module tango.net.cluster.tina.util.model.IServer; | |
14 | |
15 private import tango.io.model.IConduit; | |
16 | |
17 /****************************************************************************** | |
18 | |
19 Contract to be fulfilled by all Mango servers. | |
20 | |
21 ******************************************************************************/ | |
22 | |
23 interface IServer | |
24 { | |
25 /********************************************************************** | |
26 | |
27 Provide support for figuring out the remote address | |
28 | |
29 **********************************************************************/ | |
30 | |
31 char[] getRemoteAddress (IConduit conduit); | |
32 | |
33 /********************************************************************** | |
34 | |
35 Provide support for figuring out the remote host. | |
36 | |
37 **********************************************************************/ | |
38 | |
39 char[] getRemoteHost (IConduit conduit); | |
40 | |
41 /********************************************************************** | |
42 | |
43 Return the protocol in use. | |
44 | |
45 **********************************************************************/ | |
46 | |
47 char[] getProtocol(); | |
48 | |
49 /********************************************************************** | |
50 | |
51 Return the local port we're attached to | |
52 | |
53 **********************************************************************/ | |
54 | |
55 int getPort(); | |
56 | |
57 /********************************************************************** | |
58 | |
59 Return the local address we're attached to | |
60 | |
61 **********************************************************************/ | |
62 | |
63 char[] getHost(); | |
64 } |