3 ; demo client for non-blocking UDP communications
5 ; start the server program udp-server.lsp first
7 ; note, that net-listen in UDP mode only binds the socket
8 ; to the local address, it does not 'listen' as in TCP/IP
11 (set 'socket
(net-listen 10002 "" "udp"))
12 (if (not socket
) (println (net-error)))
13 (while (not (net-error))
15 (net-send-to "127.0.0.1" 10001 (read-line) socket
)
16 (net-receive socket
'buff
255)