summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_server_simple.eo
blob: ec2af1188c3d0e9304f686e88fc7c3f0cb7195f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
class Efl.Net.Server.Simple (Efl.Loop_User, Efl.Net.Server) {
    [[A network server wrapper that creates clients based on @Efl.Net.Socket.Simple.

      This is just a wrapper server, it will take an actual server
      using @.inner_server or create one using @.inner_class.

      @since 1.19
    ]]
    methods {
        @property inner_class {
            [[The class used to create @.inner_server if none was provided.

              This class must be set at construction time and will be
              used to create the inner socket during
              @Efl.Object.finalize.

              It is a helper for users, removing the burden to
              manually create and specify a dialer object.
            ]]
            get {
                [[The internal class used to create the inner dialer.]]
            }
            set {
                [[Constructor-only property to define the class used to create the inner dialer.]]
            }
            values {
                klass: const(Efl.Class); [[The class]]
            }
        }

        @property inner_server {
            [[The inner @Efl.Net.Server this wrapper operates on.]]
            get {
                [[The internal server used for actual operations, use with care!]]
            }
            set {
                [[Constructor-only property to set the inner_server.]]
            }
            values {
                server: Efl.Object; [[The server instance]]
            }
        }
    }

    implements {
        Efl.Object.finalize;
        Efl.Object.destructor;
        Efl.Net.Server.serve;
        Efl.Net.Server.client_announce;
        Efl.Net.Server.address.get;
        Efl.Net.Server.clients_count.get;
        Efl.Net.Server.clients_limit;
        Efl.Net.Server.serving.get;
    }
}