summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_socket_tcp.eo
blob: 449f255540073a143a92f05dc02eb3b06311eedf (plain) (blame)
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
class @beta Efl.Net.Socket_Tcp extends Efl.Net.Socket_Fd {
    [[A base TCP socket.

      This is the common class and takes an existing FD, usually
      created by an dialer or server.

      @since 1.19
    ]]

    methods {
        @property keep_alive {
            [[Controls keep-alive using SO_KEEPALIVE]]
            get { }
            set {
                return: bool (false); [[$true on success]]
            }
            values {
                keep_alive: bool; [[$true if keep alive is enabled, $false otherwise]]
            }
        }

        @property no_delay {
            [[Controls TCP's no-delay using TCP_NODELAY]]
            get { }
            set {
                return: bool (false); [[$true on success]]
            }
            values {
                no_delay: bool; [[$true if no delay is enabled, $false otherwise]]
            }
        }

        @property cork {
            [[Controls TCP's cork using TCP_CORK]]
            get { }
            set {
                return: bool (false); [[$true on success]]
            }
            values {
                cork: bool; [[$true if cork is enabled, $false otherwise]]
            }
        }
    }

    implements {
        Efl.Loop_Fd.fd { set; }
    }
}