Created
February 9, 2013 10:41
-
-
Save chomy/4744826 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(asdf:load-system :usocket) | |
(load "/usr/share/common-lisp/source/usocket/usocket.lisp") | |
(defun tcp-handler (stream) | |
(multiple-value-bind (sec min hr date mon yr day daylight zone) | |
(get-decoded-time) | |
(format stream "~D-~D-~D ~D:~D:~D~%" yr mon date hr min sec))) | |
(usocket:socket-server "127.0.0.1" 9090 #'tcp-handler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment