summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_server_windows.eo
blob: 955d97243021679c3c2b0dda3f31e1c5e0c92fe0 (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
class Efl.Net.Server_Windows (Efl.Loop_Consumer, Efl.Net.Server) {
    [[A Windows NamedPipe server.

      The @Efl.Net.Server.serve method calls CreateNamedPipe()
      directly, so the path will be accessed and created in that
      method. If the created socket must be subject to some special
      mode or user, change before executing said method.

      @since 1.19
    ]]

    methods {
        @property allow_remote {
            [[If server allows remote (different machine) clients.

              If this property is $true, then it will allow clients to
              connect from remote machines. If $false (default), then
              just local clients are allowed.
            ]]
            values {
                allow_remote: bool; [[If $true, server will allow remote machines to connect.]]
            }
        }
    }

    implements {
        Efl.Object.constructor;
        Efl.Object.invalidate;
        Efl.Object.destructor;
        Efl.Net.Server.address { get; set; }
        Efl.Net.Server.clients_count { get; set; }
        Efl.Net.Server.clients_limit { get; set; }
        Efl.Net.Server.serving { get; set; }
        Efl.Net.Server.serve; [[address parameter will have "\\\\.\\pipe\\" prepended]]
        Efl.Net.Server.client_announce;
    }
}