Description

Accepts a new client, should emit "client,add".

Remember to create the client object with a callback to EFL_IO_CLOSER_EVENT_CLOSED during the construction, decrease Efl.Net.Server.clients_count as well as unref the client and remove yourself as parent.

The new clients should have the server as parent and increase the Efl.Net.Server.clients_count.

Whenever this function fails, it must close the given client file descriptor.

Since 1.19

Signature

client_add @protected @pure_virtual {
    params {
        @in client_fd: int;
    }
}

C signature

void efl_net_server_fd_client_add(Eo *obj, int client_fd);

Parameters

  • client_fd (in) - The file descriptor of the client socket. It comes preconfigured with close_on_exec. On failure, remember to close this socket.

Implemented by

  • Efl.Net.Server.Fd.client_add