efl/src/lib/ecore_con/efl_net_server_unix.eo

36 lines
1.1 KiB
Plaintext

class Efl.Net.Server.Unix (Efl.Net.Server.Fd) {
[[An AF_UNIX server.
The @Efl.Net.Server.serve method will call bind(2) directly,
thus path will be accessed and created in that method. If the
created socket must be subject to some special mode or user,
change before executing that method, for example calling
umask(2).
@since 1.19
]]
methods {
@property unlink_before_bind {
[[AF_UNIX paths may be stale due crashes, remove files and try again.
If this property is $true, then it will unlink() before
bind() is done, repeating this process if EADDRINUSE.
By default it's false and you will get EADDRINUSE.
]]
values {
unlink_before_bind: bool; [[If $true, server will unlink() the path before bind() is called.]]
}
}
}
implements {
Efl.Object.destructor;
Efl.Net.Server.serve;
Efl.Net.Server.Fd.client_add;
Efl.Net.Server.Fd.client_reject;
Efl.Net.Server.Fd.socket_activate;
}
}