RosettaCodeData/Task/Distributed-programming/PicoLisp/distributed-programming-2.l
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

6 lines
355 B
Common Lisp

(let? Sock (connect "localhost" 12321)
(out Sock (pr '*Pid)) # Query PID from server
(println 'PID (in Sock (rd))) # Receive and print reply
(out Sock (pr '(* 3 4))) # Request some calculation
(println 'Result (in Sock (rd))) # Print result
(close Sock) ) # Close connection to server