Description

Creates an object given sockaddr

This is a convenient way to create an object in a single call. To create based on native port and address bytes use Efl.Net.Ip_Address.create. To create from a string use Efl.Net.Ip_Address.parse.

Since 1.19

Signature

create_sockaddr @class {
    params {
        @in sockaddr: const(void_ptr) @nonull;
    }
    return: free(Efl.Net.Ip_Address, efl_del);
}

C signature

Parameters

  • sockaddr (in) - The pointer to struct sockaddr-compatible handle as per <netinet/in.h>.

Implemented by

  • Efl.Net.Ip_Address.create_sockaddr