Handbook
Glossary
get-socket-option ( fd level opt -- val )
Vocabulary
io
.
sockets
.
unix
Inputs
fd
an
object
level
an
object
opt
an
object
Outputs
val
an
object
Definition
USING:
alien
alien.c-types
alien.data
io.backend.unix
kernel
libc
unix.ffi
;
IN:
io.sockets.unix
:
get-socket-option
( fd level opt -- val )
[
handle-fd
]
2dip
-1
int
<ref>
[
dup
byte-length
int
<ref>
getsockopt
io-error
]
keep
int
deref
;