UDP example client does not start

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?

UDP example client does not start

Postby Stefan » Fri May 23, 2014 6:03 pm

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
Stefan
 
Posts: 10
Joined: Fri Jun 21, 2013 7:01 am
Location: Germany

Re: UDP example client does not start

Postby Lutz » Sat May 24, 2014 7:02 am

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.
Lutz
 
Posts: 5258
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: UDP example client does not start

Postby Stefan » Sun May 25, 2014 4:46 pm

Yep, that's the reason.

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


Return to newLISP and the O.S.

Who is online

Users browsing this forum: No registered users and 3 guests

cron