[Top]
Stdio
Stdio.Port
|
Method Stdio.Port()->bind_unix()
- Method
bind_unix
-
int bind_unix(string path, void|function accept_callback)
- Description
-
Bind opens a Unix domain socket at the filesystem location path.
If the second argument is present, the socket is set to nonblocking
and the callback funcition is called whenever something connects to
it. The callback will receive the id for this port as argument.
- Returns
-
1 on success, and zero on failiure.
- Note
-
this function is only available on systems that support Unix domain
sockets.
- See also
-
accept
|