[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] udp.scm
From: |
Daishi Kato |
Subject: |
[Chicken-users] udp.scm |
Date: |
Sat, 02 Apr 2005 11:21:17 +0900 |
User-agent: |
Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI) |
Hi,
I'm very new to the scheme and CHICKEN,
and trying to use udp.scm.
The example code just gives me:
8<------8<------8<------8<------8<------8<------
Version 1, Build 63 - linux-unix-gnu-x86
(c)2000-2004 Felix L. Winkelmann
#;> (require 'udp)
; loading /usr/local/lib/chicken/udp.so ...
#;> (define s (udp-open-socket))
#;> (udp-bind! s #f 0)
#;> (udp-connect! s "localhost" 13)
#;> (udp-send s "\n")
1
#;> (receive (n data from-host from-port) (udp-recvfrom s 64) (print* n " bytes
from " from-host ":" from-port ": " data))
Error: recvfrom
8<------8<------8<------8<------8<------8<------
Would somebody figure out what is wrong with it?
Any clue to debug this kind of error would also help.
Thanks,
Daishi
- [Chicken-users] udp.scm,
Daishi Kato <=