Module CommTCP, parameter localAdr

All except GUI problems
Post Reply
manumart1
Posts: 67
Joined: Tue Sep 17, 2013 6:25 am

Module CommTCP, parameter localAdr

Post 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
User avatar
Ivan Denisov
Posts: 362
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: Module CommTCP, parameter localAdr

Post by Ivan Denisov »

Thanks, Manuel. This should be fixed.
Post Reply