Handbook
Glossary
ipv4
Vocabulary
io
.
sockets
Definition
IN:
io.sockets
TUPLE:
ipv4
<
hostname
;
Methods
USING:
io.sockets
io.sockets.private
kernel
;
M:
ipv4
address-size
drop
4
;
USING:
io.sockets
io.sockets.private
kernel
unix.ffi
;
M:
ipv4
empty-sockaddr
drop
sockaddr-in
new
;
USING:
alien.data
io.sockets
io.sockets.private
ip-parser.private
kernel
;
M:
ipv4
inet-ntop
drop
4
memory>byte-array
join-ipv4
;
USING:
continuations
io.sockets
io.sockets.private
kernel
;
M:
ipv4
inet-pton
drop
[
?parse-ipv4
]
[
invalid-ipv4
]
recover
;
USING:
accessors
alien.c-types
alien.data
io.sockets
io.sockets.private
kernel
;
M:
ipv4
make-sockaddr
[
make-sockaddr-part
]
[
host>>
"0.0.0.0"
or
]
[
inet-pton
uint
deref
>>addr
]
tri
;
USING:
accessors
alien.c-types
alien.data
io.sockets
io.sockets.private
kernel
sequences
;
M:
ipv4
make-sockaddr-outgoing
[
make-sockaddr-part
]
[
host>>
dup
{
f
"0.0.0.0"
}
member?
[
drop
"127.0.0.1"
]
when
]
[
inet-pton
uint
deref
>>addr
]
tri
;
USING:
accessors
alien.c-types
alien.data
io.sockets
io.sockets.private
kernel
;
M:
ipv4
parse-sockaddr
[
addr>>
uint
<ref>
]
dip
inet-ntop
<ipv4>
;
USING:
accessors
io.sockets
present
;
M:
ipv4
present
host>>
;
USING:
io.sockets
io.sockets.private
kernel
unix.ffi
;
M:
ipv4
protocol-family
drop
PF_INET
;
USING:
alien.c-types
io.sockets
io.sockets.private
kernel
unix.ffi
;
M:
ipv4
sockaddr-size
drop
sockaddr-in
heap-size
;
USING:
accessors
io.sockets
io.sockets.icmp
io.sockets.icmp.private
;
M:
ipv4
with-icmp
host>>
<icmp4>
;
USING:
accessors
io.sockets
kernel
;
M:
ipv4
with-port
[
host>>
]
dip
<inet4>
;