Handbook
Glossary
(get-local-address) ( handle remote -- sockaddr )
Vocabulary
io
.
sockets
.
private
Inputs
handle
an
object
remote
an
object
Outputs
sockaddr
an
object
Definition
IN:
io.sockets.private
GENERIC:
(get-local-address)
( handle remote -- sockaddr )
Methods
USING:
alien.c-types
alien.data
io.backend.unix
io.sockets.private
kernel
libc
unix.ffi
;
M:
object
(get-local-address)
[
handle-fd
]
dip
empty-sockaddr/size
int
<ref>
[
getsockname
io-error
]
keepd
;
USING:
accessors
io.sockets.private
io.sockets.secure
;
M:
secure
(get-local-address)
addrspec>>
(get-local-address)
;