From: William Xu <william.xwl@gmail.com>
Subject: recv! and thread
Date: Wed, 01 Mar 2006 13:01:38 +0800 [thread overview]
Message-ID: <87wtfedah9.fsf@www.williamxu.com> (raw)
Hi people,
I want to create a receiver thread for receiving incoming packets. While
when the thread is created, seems it becomes the main thread? the
original guile> prompt is gone. Here is what i did,
(define receiver
(lambda ()
(let ((sock (socket PF_INET SOCK_DGRAM 0))
(buf (make-string 65536)))
(display "receiver running...\n")
(connect sock AF_INET (inet-aton "127.0.0.1") 8000)
(recv! sock buf))))
guile> (make-thread receiver)
#<thread 828785888 (100ca238)>
guile> receiver running...
Any clues?
--
William
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next reply other threads:[~2006-03-01 5:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 5:01 William Xu [this message]
2006-03-03 23:44 ` recv! and thread Kevin Ryde
2006-03-04 2:11 ` William Xu
2006-03-07 20:56 ` Kevin Ryde
2006-03-10 19:41 ` William Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wtfedah9.fsf@www.williamxu.com \
--to=william.xwl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).