On Sat, May 18, 2019 at 10:18:42AM -0700, C K Kashyap wrote:
> is to figure out how to read from *ContLen bytes from the input. What's a

You can easily write a stand-alone server without any library:

   (setq *Port (port 8080))

   (loop
      (setq *Sock (listen *Port))
      (unless (fork)
         (close *Port)
         (in *Sock
            (while (line))  # Skip header
            (let S (till NIL T)
               (msg S) ) )  # Do something with the string
         (bye) )
      (close *Sock) )

Instead of 'msg' do something with the data.

And add as much checking as you like, eg in the header.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to