Page 1 of 1

Module CommTCP, parameter localAdr

Posted: Thu Aug 20, 2015 11:32 am
by manumart1
I've been looking at exemplary modules CommObxStreamsServer and CommObxStreamsClient, executing them via theirs docu files:
(Q) CommObxStreamsServer.Start
(Q) CommObxStreamsClient.SendTextSelection
But they didn't work. I've only been able to make them work, by changing the constant localAdr, adding to it the value "localhost" or "127.0.0.1".

Code: Select all

MODULE CommObxStreamsServer
CONST localAdr = "localhost:900";    <-- I added "localhost:" at the beginning
...
MODULE CommObxStreamsClient
CONST localAdr = "localhost";    <-- I put "localhost" instead of ""
I am running BlackBox under Windows 7.
Perhaps it worked in the past without putting "localhost", and a change in a Windows API caused the current malfuntion.

I think the documentation of module CommTCP should be changed, stating that parameter localAdr cannot be simply a port number or ""; because "localhost", "loopback" or "127.0.0.1" must be explicitly provided. Also must be changed the modules CommObxStreamsServer and CommObxStreamsClient as above.

Another alternative is to change the text of module CommTCP, so that it puts "localhost" at the beginning of parameter localAdr if it is not already there.

Regards,
Manuel

Re: Module CommTCP, parameter localAdr

Posted: Mon Sep 14, 2015 6:12 pm
by Ivan Denisov
Thanks, Manuel. This should be fixed.