blob: 6e3e5760c96c5b58afc5e2f60007191b3824c6fa (
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_Consumer, Efl.Net.Server) {
[[A network server wrapper that creates clients based on @Efl.Net.Socket_Simple.
This is just a wrapper server. It takes an actual server
using @.inner_server or creates 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 build time and will be
used to create the inner socket during
@Efl.Object.finalize.
It is a helper for users, saving them the trouble of
manually creating and specifying 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.invalidate;
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 { get; set; }
Efl.Net.Server.serving { get; }
}
}
|