Re: server programming in "C"
tried the sample program int the dir $TCP and it will not work also.
Cheers tom c
toggle quoted message
Show quoted text
Ok first ... remember the manuals were written for Music 5.1. You are running Music/SP 6.2.
Look at the sample program. It should show everything you need.
Joe
I will try the change, but I found this, now to figure out how,what,when....
CARGCALL ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? This subroutine is intended for C programmers calling TCP/IP socket ? ? ? ? ? routines.? When called before the first socket routine, it guarantees that ? the arguments are passed in the manner C requires. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? CALLING SEQUENCE: ?CALL CARGCALL(); ? ? ? ??
I think I am not linking to the correct MUSIC/SP library.
Got to learn more about compile time libraries.
The above was found in? the help menu, system subroutines.
Still working on it. Cheers Tom c ? ? ? ? ? ? ? ? ? ? ??
On Mon, Jun 21, 2021 at 11:13 AM Peter Coghlan < groups@...> wrote: >
> The change did not compile, something about a LVALUE needed.? BUT, I think
> you are on the right track.? See below from ar_pf3 manual:
>
In that case, you probably need something more complex than adding an &.
Maybe something like this:
int family = AF_INET;
int type = SOCK_STREAM;
int zero = 0;
sock = socket (&family, &type, &zero);
Regards,
Peter Coghlan.
|