Handbook
Glossary
addrspec-of-family ( af -- addrspec )
Vocabulary
io
.
sockets
.
private
Inputs
af
an
object
Outputs
addrspec
an
object
Definition
USING:
system
;
IN:
io.sockets.private
HOOK:
addrspec-of-family
os
( af -- addrspec )
Methods
USING:
combinators
io.sockets
io.sockets.private
kernel
system
unix.ffi
;
M:
unix
addrspec-of-family
{
{
AF_INET
[
T{
ipv4
}
]
}
{
AF_INET6
[
T{
ipv6
}
]
}
{
AF_UNIX
[
T{
local
}
]
}
[
drop
f
]
}
case
;