aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/net/dialer/websocket/event/pong.txt
blob: 20ca6f2378910e0af8a1a0b565011c081646cb35 (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
~~Title: Efl.Net.Dialer.Websocket: pong~~
===== Description =====

%%Received a pong (opcode=0xA) with optional message/reason%%

//Since 1.19//
{{page>:develop:api-include:efl:net:dialer:websocket:event:pong:description&nouser&nolink&nodate}}

===== Signature =====

<code>
pong: free(string, free);
</code>

===== C information =====

<code c>
EFL_NET_DIALER_WEBSOCKET_EVENT_PONG(const char *)
</code>

===== C usage =====

<code c>
static void
on_efl_net_dialer_websocket_event_pong(void *data, const Efl_Event *event)
{
    const char *info = event->info;
    Eo *obj = event->object;
    Data *d = data;

    /* event hander code */
}

static void
setup_event_handler(Eo *obj, Data *d)
{
    efl_event_callback_add(obj, EFL_NET_DIALER_WEBSOCKET_EVENT_PONG, on_efl_net_dialer_websocket_event_pong, d);
}

</code>