UDP example client does not start

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
Stefan
Posts: 10
Joined: Fri Jun 21, 2013 7:01 am
Location: Germany

UDP example client does not start

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: UDP example client does not start

Post 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.

Stefan
Posts: 10
Joined: Fri Jun 21, 2013 7:01 am
Location: Germany

Re: UDP example client does not start

Post by Stefan »

Yep, that's the reason.

Thanks,
Stefan

Locked