Not sure I am exactly getting the question.

In C at least, sockets are sockets are sockets. I did a whole lot of 
multi-platform C socket code and almost EXACTLY the same code will run Windows, 
Linux or legacy MVS. There is one additional call at startup that you need in 
Windows, and a few obscure functions are platform-dependent. But if you 
download a generic C sockets client/server demo program from the Web it will 
almost certainly run unmodified on Linux or MVS.

I'm not trying to sell some language here; just relating the facts as I see 
them.

Here for example is the documentation for the socket() function on MVS, Linux 
and Windows respectively:

MVS:

int socket(int *domain, int type, int protocol);

The socket() function creates an endpoint for communication and returns a socket
descriptor representing the endpoint.

Linux:

int socket(int domain, int type, int protocol);

socket() creates an endpoint for communication and returns a file
descriptor that refers to that endpoint.

Windows:

SOCKET WSAAPI socket(
  [in] int af,
  [in] int type,
  [in] int protocol
);

The socket function creates a socket that is bound to a specific transport 
service provider.

(Between you and me, "SOCKET WSAAPI" = int.)

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Bob Bridges
Sent: Wednesday, January 5, 2022 8:19 AM
To: [email protected]
Subject: Re: Sockets?

That looks right, yes.  I have a PDF copy in my library.  However I don't think 
I ever saw it in this context; maybe I'll benefit by reading elsewhere in the 
"z/OS Communications Server" library, now that you've pointed me to it.

If I do, I may find the answer to my question.  But probably not; this is about 
z/OS.  What I'm asking about is what calls exist to do the same sort of 
operations on other platforms than the mainframe and from other languages than 
REXX.

---
Bob Bridges, [email protected], cell 336 382-7313

/* Our prayers may be awkward. Our attempts may be feeble.  But since the power 
of prayer is in the One who hears it and not in the one who says it, our 
prayers do make a difference.  -Max Lucado */

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Steve Horein
Sent: Wednesday, January 5, 2022 06:53

I believe these are the socket functions Bob is referring to:
https://www.ibm.com/docs/en/zos/2.5.0?topic=interface-runtime-functions

--- On Wed, Jan 5, 2022 at 12:15 AM Itschak Mugzach < 
[email protected]> wrote:
> The function name is "HTTP/HTTPS protocol enabler". It supports 
> several languauges, including rexx and works great.
>
> --- On Wed, Jan 5, 2022 at 7:04 AM Bob Bridges <[email protected]> wrote:
> > Maybe not the best place to ask, but I've heard folks here mention
> > writing interfaces using sockets.  Now, someone sent me a manual on the 
> > socket functions that could be used with REXX, and I successfully 
> > wrote a client/server pair for use on the mainframe, just as a proof 
> > of concept for a project that in the end was never executed.  I enjoyed
> > the experience, and captivated by the possibilities.
> >
> > But it was a set of calls for use only with REXX.  I hear other 
> > folks here talk about sockets, and I'm wondering what else there is that
> > I can use on other platforms.  Someday I'll learn assembler for Windows,
> > but until I do, are there other tools available?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to