apx_connect is an wrapper for connect.
apx_shutdown is an wrapper for shutdown

Em qua., 22 de abr. de 2020 às 02:09, Stuart Longland
<stua...@longlandclan.id.au> escreveu:
>
> On 22/4/20 11:48 am, Gustavo Rios wrote:
> > Dear gentleman,
> >
> > i have the an ANSI C code that do the following:
> >
> > 0. open a socket
> > 1. write data to the socket
> > 2. close the writing end of the socket
> > 3. read data from the socket
> > 4. close the read end of the socket
> >
> > The the step number 4 returns an error, why ?
> >
> > Here it is (Only the relevant part of the code )
> >
> > if (!r) r = apx_connect(s, &sa);
> > if (!r) r = pmp_set(&ap, 1ul, &bp);
> > if (!r) r = pmpsend(s, &ap);
> > if (!r) r = apx_shutdown(s, shut_wr);
> > if (!r) r = pmprecv(&ap, s, &l);
> > if (!r) r = apx_shutdown(s, shut_rd);
> >
>
> Dumb question this way…
>
> > vk4msl-gap$ man apx_connect
> > man: No entry for apx_connect in the manual.
> > vk4msl-gap$ man apx_shutdown
> > man: No entry for apx_shutdown in the manual.
>
> what's `apx_connect` and `apx_shutdown`?  There's some library here you
> are not telling us about.
> --
> Stuart Longland (aka Redhatter, VK4MSL)
>
> I haven't lost my mind...
>   ...it's backed up on a tape somewhere.

Reply via email to