send ( bytes addrspec datagram -- ) (original) (raw)

send ( bytes addrspec datagram -- )
Networking » Packet-oriented networking

Prev: ( addrspec -- datagram )
Next: receive ( datagram -- bytes addrspec )

Vocabulary
io.sockets

Inputs

bytes a byte-array
addrspec an address specifier
datagram a datagram socket

Outputs
None

Word description
Sends a packet to the given address.

Errors
Throws an error if the packet could not be sent.

Definition

USING: io.sockets.private ;

IN: io.sockets

: send ( bytes addrspec datagram -- ) check-send (send) ; inline