Vocabularyio.
socketsInputsOutputsNone
ExamplesSend a datagram to localhost, port 7777:
USING: io.sockets prettyprint ;
B{ 1 2 3 } f 7777 <inet4> broadcast-once
Send a datagram to the broadcast address, port 7777:
USING: io.sockets prettyprint ;
B{ 1 2 3 } "192.168.88.255" 7777 <inet4> broadcast-once
Receive a datagram on port 7777:
USING: destructors kernel io.sockets ;
f 7777 <inet4> <datagram> [ receive ] [ dispose ] bi
Word descriptionBroadcasts a packet one time to the address and closes the sending broadcast port.
Definition