[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads

From: Rob Browning
Subject: Re: Threads
Date: Thu, 27 Sep 2001 12:55:32 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

Manuel Giraud <address@hidden> writes:

> ;;; Client
> ;;; The message : a s-expression.
> (define message '(display "hello\n"))

> ;;; Connect and send
> (connect sock AF_INET (car (hostent:addr-list (gethost sname))) port)
> (write message sock)

Among other things, you may need a (force-output sock) here.
Otherwise the output may never get flushed to the other side, and so
read will never return.

Hope this helps.

Rob Browning
rlb,, and
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD

reply via email to

[Prev in Thread] Current Thread [Next in Thread]