Description

A new client socket has been created.

The socket will have the server as parent and can be closed by both the server or the user using Efl.Io.Closer.

Since 1.19

Signature

client,add @hot: free(Efl.Net.Socket, efl_del);

C information

C usage

static void
on_efl_net_server_event_client_add(void *data, const Efl_Event *event)
{
    Efl_Net_Socket *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_SERVER_EVENT_CLIENT_ADD, on_efl_net_server_event_client_add, d);
}