aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/net/dialer/event/resolved.txt
blob: 6d42187ba1e960f7f9a98097997a4b75776ecdb8 (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
~~Title: Efl.Net.Dialer: resolved~~
===== Description =====

%%Notifies %%[[:develop:api:efl:net:dialer:property:address_dial|Efl.Net.Dialer.address_dial]]%% was resolved to %%[[:develop:api:efl:net:socket:property:address_remote|Efl.Net.Socket.address_remote]]%%.%%

%%This is emitted before "connected" and may be emitted from %%[[:develop:api:efl:object:method:finalize|Efl.Object.finalize]]%%, thus be sure to connect the callbacks during the object construction.%%

%%Some protocols allows redirects and this may be emitted multiple times, such as HTTP.%%

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

===== Signature =====

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

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

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

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

<code c>
static void
on_efl_net_dialer_event_resolved(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_EVENT_RESOLVED, on_efl_net_dialer_event_resolved, d);
}

</code>