do-send ( packet sockaddr len socket datagram -- )


Vocabulary
io.sockets.unix

Inputs
packetan object
sockaddran object
lenan object
socketan object
datagraman object


Outputs
None

Definition


:: do-send ( packet sockaddr len socket datagram -- )
socket handle-fd packet dup length 0 sockaddr len sendto 0 <
[
errno {
{
EINTR
[ packet sockaddr len socket datagram do-send ]
}
{
EAGAIN
[
datagram +output+ wait-for-port
packet sockaddr len socket datagram do-send
]
}
[ (throw-errno) ]
} case
] when ; inline recursive