Handbook
Glossary
server-socket-fd ( addrspec type -- fd )
Vocabulary
io
.
sockets
.
unix
Inputs
addrspec
an
object
type
an
object
Outputs
fd
an
object
Definition
USING:
io.backend.unix
io.sockets.private
kernel
unix
unix.ffi
;
IN:
io.sockets.unix
:
server-socket-fd
( addrspec type -- fd )
[
dup
protocol-family
]
dip
pick
protocol
socket-fd
[
init-server-socket
]
keep
[
handle-fd
swap
make-sockaddr/size
[
bind
]
unix-system-call
drop
]
keep
;