Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!seismo!uunet!arris!rshapiro From: rshapiro@arris.com (Richard Shapiro) Newsgroups: comp.lang.lisp Subject: TCP i/o in Sun Lucid Message-ID: <1991Jan23.215610.1176@arris.com> Date: 23 Jan 91 21:56:10 GMT Organization: ARRIS Pharmaceutical, Cambridge, MA Lines: 24 Is there a simple way to do tcp i/o in Sun Lucid? Ideally, I'd like something like this: (with-open-tcp-stream (stream :address address :port port :direction :io) (write-string "..." stream) . . . (force-output stream) (read-line stream)) where address is an internet style address ("128.10.15.20" or whatever) of the machine I want to contact, and port is the port number on that machine which handles the service I want. Does Sun Lucid provide a nice macro like WITH-TCP-STREAM, or even a simple OPEN-TCP-STREAM function? Perhaps they've generalized OPEN so that the "file" argument can be a tcp address+port specification? Or am I stuck doing lower level Unix socket i/o? Thanks -- rs/rshapiro@arris.com