Method: UNIXServer#initialize
- Defined in:
- unixserver.c
#new(path) ⇒ Object
Creates a new UNIX server socket bound to path.
require 'socket'
serv = UNIXServer.new("/tmp/sock")
s = serv.accept
p s.read
26 27 28 29 30 |
# File 'unixserver.c', line 26
static VALUE
unix_svr_init(VALUE sock, VALUE path)
{
return rsock_init_unixsock(sock, path, 1);
}
|