Page 1 of 1

UDP example client does not start

Posted: Fri May 23, 2014 6:03 pm
by Stefan
I am currently playing with UDP (no experience with it yet). For getting things started I tried the example udp client and server from http://www.newlisp.org/CodePatterns.html#toc-13 .
Server started, but the client reports an error:

Code: Select all

newLISP v.10.6.0 64-bit on OSX IPv4/6 UTF-8 libffi, options: newlisp -h
> (load "udp-client.lsp")
(10 "Cannot bind socket")
nil
Something I forgot?

Stefan

Re: UDP example client does not start

Posted: Sat May 24, 2014 7:02 am
by Lutz
Probably the port 10002 is in use by an other program. You could try changing port numbers in both the server and client programs. For port numbers < 1024 you need admin permissions.


Ps: Also note, that on Windows the programs udp-server.lsp and udp-client.lsp from the newlisp-x.x.x/examples directory should be used for a different format of address strings. The snippets in CodePatterns.html are only for Unix. The examples in CodePatterns.html have now been changed to work on all platforms.

Re: UDP example client does not start

Posted: Sun May 25, 2014 4:46 pm
by Stefan
Yep, that's the reason.

Thanks,
Stefan