开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: server programming in "C"


 

The reason I ask is this, from the readme.txt in the musdemo_b download:

"You can also run the MUSIC/SP Demo system under the Hercules mainframe
emulator, but in that case none of the tcp/ip applications in MUSIC/SP
can be used, such as FTP, FTPD, HTTPD, socket programming, etc."

Joe


On Sun, Jun 20, 2021 at 7:27 PM Joe Monk via <joemonk64=[email protected]> wrote:
Are you running under hercules or Sim390?

Joe

On Sun, Jun 20, 2021 at 6:00 PM Tom Chandler <tchandler48@...> wrote:
Thank you for your reply.? I had included the following:

/inc $tcp:watc.sockets.obj
/inc $tcp:watc.muresolv.obj
/inc $tcp:watc.mugetsoc.obj

with no change.? The program hangs on the:
sock = socket (AF_INET, SOCK_STREAM, 0);
code.

Cheers
Tom c.


Virus-free.

On Sun, Jun 20, 2021 at 5:08 PM Christian Robert via <christian.robert=[email protected]> wrote:
I think that if you link your program with $TCP:WATC.SOCKETS.OBJ
you will not have to call anything special.

my 2 cents,

Xtian.

On 2021-06-20 15:27, Tom Chandler wrote:
> I am trying to port over a server program in "C", to MUSIC/SP using WATC?? In the AR guide, part-3
> page 228, the following is referenced:
>
> .If you wish to code socket application in C, you must include a call to CARGENV (no parameters required)
> in order to cause the socket routines to automatically convert the arguments passed to assembler calling
> conventions. In this case, use the normal C calling conventions as defined by the SOCKET.HDR header file.
>
> I can find NO reference anyway else about CARGENV.? and of course by server program will not work
> on MUSIC/SP.? Any direction or info on how to use or where to find info on CARGENV, would be
> very helpful.
>
> Thank You
> Tom c
>





Join [email protected] to automatically receive all group messages.