UDP example client does not start

Started by Stefan, May 23, 2014, 11:03:07 AM

Previous topic - Next topic

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">//http://www.newlisp.org/CodePatterns.html#toc-13 .

Server started, but the client reports an error:

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

Lutz

#1
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.

Stefan

#2
Yep, that's the reason.



Thanks,

Stefan