summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_server_simple.eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_con/efl_net_server_simple.eo')
-rw-r--r--src/lib/ecore_con/efl_net_server_simple.eo55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/ecore_con/efl_net_server_simple.eo b/src/lib/ecore_con/efl_net_server_simple.eo
new file mode 100644
index 0000000..ec2af11
--- /dev/null
+++ b/src/lib/ecore_con/efl_net_server_simple.eo
@@ -0,0 +1,55 @@
1class Efl.Net.Server.Simple (Efl.Loop_User, Efl.Net.Server) {
2 [[A network server wrapper that creates clients based on @Efl.Net.Socket.Simple.
3
4 This is just a wrapper server, it will take an actual server
5 using @.inner_server or create one using @.inner_class.
6
7 @since 1.19
8 ]]
9 methods {
10 @property inner_class {
11 [[The class used to create @.inner_server if none was provided.
12
13 This class must be set at construction time and will be
14 used to create the inner socket during
15 @Efl.Object.finalize.
16
17 It is a helper for users, removing the burden to
18 manually create and specify a dialer object.
19 ]]
20 get {
21 [[The internal class used to create the inner dialer.]]
22 }
23 set {
24 [[Constructor-only property to define the class used to create the inner dialer.]]
25 }
26 values {
27 klass: const(Efl.Class); [[The class]]
28 }
29 }
30
31 @property inner_server {
32 [[The inner @Efl.Net.Server this wrapper operates on.]]
33 get {
34 [[The internal server used for actual operations, use with care!]]
35 }
36 set {
37 [[Constructor-only property to set the inner_server.]]
38 }
39 values {
40 server: Efl.Object; [[The server instance]]
41 }
42 }
43 }
44
45 implements {
46 Efl.Object.finalize;
47 Efl.Object.destructor;
48 Efl.Net.Server.serve;
49 Efl.Net.Server.client_announce;
50 Efl.Net.Server.address.get;
51 Efl.Net.Server.clients_count.get;
52 Efl.Net.Server.clients_limit;
53 Efl.Net.Server.serving.get;
54 }
55}