scsh-users
[Top] [All Lists]

Re: Problem using sockets

To: "Trent Buck" <trentbuck@gmail.com>
Subject: Re: Problem using sockets
From: Emilio Lopes <eclig@gmx.net>
Date: Fri, 18 May 2007 18:14:09 +0200
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
Organization: The Church of Emacs
Trent Buck writes:

> On Thu, May 17, 2007 at 10:18:15PM +0200, Emilio Lopes wrote:
>> I hope the transcript bellow is enough to describe the problem.
>> Basically I get an exception when trying to write to a socket.  I'm
>> pretty sure this used to work, but it doesn't anymore...

> FWIW, while I don't understand any of the code, I can reproduce the
> symptoms with

> ii  linux-image-2.6.20-1-amd64        2.6.20-3
> ii  scsh-0.6                          0.6.7-4

Thanks for confirming the problem.  It turns out it the code really
worked with version 0.6.6:

   Welcome to scsh 0.6.6 (King Conan)
   Type ,? for help.
   > ...        
   > (define *server-socket* (socket-connect protocol-family/internet 
socket-type/stream "localhost" 6666))
   Hello, jumeirah!
   > (send-message *server-socket* "hi!\n")
   > (read-line (socket:inport *server-socket*))
   "You said: \"hi!\"."
   > 

-- 
Emílio C. Lopes                            Ich leb und weiß nit wie lang,
Munich, Germany                            ich stirb und weiß nit wann,
                                           ich fahr und weiß nit wohin,
                 (Martinus von Biberach)   mich wundert, dass ich fröhlich bin!

<Prev in Thread] Current Thread [Next in Thread>