On Tue, Jul 13, 2021 at 5:37 PM Terry Fuller <t...@pgmguild.com> wrote:

> Hi René & all,
>
> To be clear, I am instantiating an object but I haven't gotten an error
> doing so... I was just reading the doc to understand how to do this and I
> found the sample case to be odd.
>
> For example if I were to write a line like:
>
> -1~errno
>
> I would expect something like -1 does not understand the message errno.
> The if statement in the doc seemed to be identical to that case (if s=-1
> then ... s~errno...).
>
> So, the socket is instantiated even if it's value is set to -1?
>
>
> On 2021-07-12 12:45, René Jansen wrote:
>
> Hi Terry,
>
> just for my understanding of what you mean: you instantiated an object,
> which’ particular purpose was to open a tcp socket. The fact that this did
> go wrong, does not mean you cannot send the object a message of ‘let me
> know the error code of what happened when you tried to open the socket’.
> You are not sending anything over the socket (it is most prpbably not
> there) - you are communicating with your object.
>
> Or seems something else wrong?
>
> best regards,
>
> René.
>
> On 12 Jul 2021, at 21:34, Terry Fuller <t...@pgmguild.com> wrote:
>
> Hello all,
>
> I'm working my way thru a project that makes use of rxsockets.   in
>
> *ooRexx Documentation 5.0.0 *
> *Open Object Rexx RxSock TCP/IP Socket Functions Reference*
> * Edition 1 *
>
> i found:
>
>      -- get a new socket
>      s = .socket~new()
>      if s = -1 then do
>      say 'Error' s~errno() 'creating server socket'
>      return
>      end
>
>
> but... if s is -1, sending a message to it to extract an error message
> number seems wrong; at least to me.  Am I missing something?
>
> I suspect this was a bad conversion of the docs from the OS/2 function
based version into the object based version. This probably should be "if
s~error = -1 then do"

Rick


> --
> taf
>
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
>
>
> _______________________________________________
> Oorexx-devel mailing 
> listOorexx-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
> --
> taf
>
> _______________________________________________
> 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

Reply via email to