import eina_types;
-struct Efl.Net.Ip.Address.Resolve_Results {
- [[The results of @Efl.Net.Ip.Address.resolve call.
+struct Efl.Net.Ip_Address.Resolve_Results {
+ [[The results of @Efl.Net.Ip_Address.resolve call.
- This structure is created by @Efl.Net.Ip.Address.resolve.
+ This structure is created by @Efl.Net.Ip_Address.resolve.
@since 1.19
]]
- request_address: string; [[The 'address' argument given to Efl.Net.Ip.Address.resolve]]
+ request_address: string; [[The 'address' argument given to Efl.Net.Ip_Address.resolve]]
canonical_name: string; [[The canonical name, if it was requested in flags]]
- results: array<Efl.Net.Ip.Address>; [[The resolved objects. Do not modify this array, but you can keep reference to elements using efl_ref() and efl_unref()]]
+ results: array<Efl.Net.Ip_Address>; [[The resolved objects. Do not modify this array, but you can keep reference to elements using efl_ref() and efl_unref()]]
}
-class Efl.Net.Ip.Address (Efl.Object) {
+class Efl.Net.Ip_Address (Efl.Object) {
[[An Internet Protocol (IP) Address.
This class is a set of helpers to translate to and from address
port: uint16; [[Port number in Host/Native endianess]]
address: const(Eina.Slice); [[Address bytes. If 4 bytes, AF_INET will be used. If 16 bytes, AF_INET6 will be used. All other sizes will result in failure.]]
}
- return: own(Efl.Net.Ip.Address); [[Newly created object or $NULL if parameters were invalid.]]
+ return: own(Efl.Net.Ip_Address); [[Newly created object or $NULL if parameters were invalid.]]
}
create_sockaddr @class {
params {
sockaddr: const(void_ptr) @nonull; [[The pointer to struct sockaddr-compatible handle as per <netinet/in.h>.]]
}
- return: own(Efl.Net.Ip.Address); [[Newly created object or $NULL if parameter was invalid.]]
+ return: own(Efl.Net.Ip_Address); [[Newly created object or $NULL if parameter was invalid.]]
}
parse @class {
params {
numeric_address: string; [[The numeric address to parse, such as '127.0.0.1:1234' or '[::1]:1234']]
}
- return: own(Efl.Net.Ip.Address); [[The new IP address object or NULL if it failed to parse]]
+ return: own(Efl.Net.Ip_Address); [[The new IP address object or NULL if it failed to parse]]
}
resolve @class {
family: int @optional; [[Preferred family. AF_UNSPEC or 0 for both, otherwise one of AF_INET or AF_INET6]]
flags: int @optional; [[Flags to use with getaddrinfo(). If 0, default flags are used (AI_V4MAPPED | AI_ADDRCONFIG, if these exist in your system).]]
}
- return: future<const(Efl.Net.Ip.Address.Resolve_Results)>; [[The resolve results. It contains a list of Efl.Net.Ip.Address, they will be automatically deleted unless you keep a reference to it.]]
+ return: future<const(Efl.Net.Ip_Address.Resolve_Results)>; [[The resolve results. It contains a list of Efl.Net.Ip_Address, they will be automatically deleted unless you keep a reference to it.]]
}
@property string {