开云体育

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

Re: server programming in "C"


 

Sir,
Gave it a try, but it fails in the compile as IP_PROTO_TCP
reports as undefined.

Cheers
Tom c


Virus-free.

On Sun, Jun 20, 2021 at 7:22 PM Christian Robert via <christian.robert=polymtl.ca@groups.io> wrote:

On 2021-06-20 19:00, Tom Chandler 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.

I would use sock = socket (AF_INET, SOCK_STREAM, IP_PROTO_TCP);
or something like that.

I can't help you more because I didn't manage to make TCPIP available yet in my Hercules.
Not sure if it's possible.

Xtian.


>
>
> <>? ? ? Virus-free. <>
>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> On Sun, Jun 20, 2021 at 5:08 PM Christian Robert via <> <christian.robert=polymtl.ca@groups.io <mailto:polymtl.ca@groups.io>> 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 H390-MUSIC@groups.io to automatically receive all group messages.