Re: socket I/O on openbsd

2020-04-22 Thread Claudio Jeker
On Tue, Apr 21, 2020 at 10:48:46PM -0300, 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 >

Re: socket I/O on openbsd

2020-04-21 Thread Janne Johansson
You're still not telling what it is, where it came from, what it does. Noone here can mind read you. We will not admit we can see what is on your monitor, so .. step up to the challenge and show your work. https://i.imgur.com/ArfmbAf.gif Den ons 22 apr. 2020 kl 08:09 skrev Gustavo Rios : > apx_

Re: socket I/O on openbsd

2020-04-21 Thread Gustavo Rios
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 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.

Re: socket I/O on openbsd

2020-04-21 Thread Stuart Longland
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

socket I/O on openbsd

2020-04-21 Thread Gustavo Rios
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