Skip to content

Instantly share code, notes, and snippets.

@zodmaner
Last active August 29, 2015 14:24
Show Gist options
  • Save zodmaner/7c0ed4ff0d8a6d6c494e to your computer and use it in GitHub Desktop.
Save zodmaner/7c0ed4ff0d8a6d6c494e to your computer and use it in GitHub Desktop.
(defun start-echo-client (port)
"Connect to a server and send a message."
(usocket:with-client-socket (socket stream "127.0.0.1" port)
(format stream "Hello world!~%")
(force-output stream)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment