Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Erich Steinböck
>
> Not sure where 119.242.25.32 is coming from
> $ rexx -e "say SockGetHostId(); ::requires 'rxsock' LIBRARY"
> 119.242.25.32
>

Probably from /etc/hosts .. check the gethostid() docs for your OS.
You can rewrite the samples to use localhost 127.0.0.1 instead - this
should always work
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Jason Martin
agrellum@openindiana:~$ rexx -e "say SockGetHostId(); ::requires 
'rxsock' LIBRARY"

119.242.25.32
agrellum@openindiana:~$


On 11/06/18 07:06 PM, Jason Martin wrote:

agrellum@openindiana:~/ZZ$ rexx sfserver.rex
Server listening at 119.242.25.32:50010
SockBind failed: EADDRNOTAVAIL
Press [Enter] To Shutdown

Not sure where 119.242.25.32 is coming from

Test groups all passed




___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Jason Martin

This is purely my fault. Pulled examples from checkout.


On 11/06/18 07:20 PM, Jason Martin wrote:
Could you check that this has picked up the correct location for your 
version?


Will do tomorrow.






___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Jason Martin
Could you check that this has picked up the correct location for your 
version?


Will do tomorrow.




___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Jason Martin

agrellum@openindiana:~/ZZ$ rexx sfserver.rex
Server listening at 119.242.25.32:50010
SockBind failed: EADDRNOTAVAIL
Press [Enter] To Shutdown

Not sure where 119.242.25.32 is coming from

Test groups all passed


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Erich Steinböck
>
> SockBind failed: EADDRNOTAVAIL
>

Jason, can you move sfserver.rex line 106 'say "Sever listening ..' before
the bind to line 92, so that we can see address and port?
Do you see the same result when you start scserver.rex?

Does the socketClass.testGroup run fine with your build?
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Rick McGuire
On Tue, Nov 6, 2018 at 3:09 PM Jason Martin  wrote:

> r11517 on OpenIndiana
>
> rexx sfserver.rex
>
> SockBind failed: EADDRNOTAVAIL
>
> Maybe? https://idea.popcount.org/2014-04-03-bind-before-connect/
>
> Also? New to me.
>
> #!@OOREXX_SHEBANG_PROGRAM@
>

This is something new in the build. Since MacOS and Linux do not place rexx
in the same locations, the build dynamically updates the sample shebang
lines using the install prefix defined in the Cmake file. The version in
the build tree is the template and the build directory should have a
samples dir in it with the updated versions. Could you check that this has
picked up the correct location for your version?

Rick


>
>
>
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Jason Martin

r11517 on OpenIndiana

rexx sfserver.rex

SockBind failed: EADDRNOTAVAIL

Maybe? https://idea.popcount.org/2014-04-03-bind-before-connect/

Also? New to me.

#!@OOREXX_SHEBANG_PROGRAM@





___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Advice needed on scserver.rex and scclient.rex sample programs

2018-11-06 Thread Erich Steinböck
Commit [r11516]  should fix
the issues.

can you advice how one can refer to two different terminal sessions in the
> same program (with the intention to start the scserver in one ADDRESS
> statement first and then the scclient in another ADDRESS statement
>

You might use something like below to run an automated test for sf/sc
server plus two concurrent clients (the fix has also added a delayed
shutdown feature for the servers to facilitate such automated testing):

~~~
use arg prefix = "sc"

job = .Job~new(prefix)
job~start("server")
call SysSleep 0.5 -- wait for server to become ready

job~start("client")
job~start("client")

::class job

::method init
  expose prefix
  use strict arg prefix

::method server
  expose prefix
  address "" "rexx" prefix || "server" with input using ("3")

::method client unguarded
  expose prefix
  address "" "rexx" prefix || "client" with input using ((111, 222, 333,
"x"))
~~~
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel