[go-nuts] Re: net.conn TCP connection

2019-12-31 Thread Ron Wahler
of bytes, so I have been just trying to make sure I had the best solution. I would still like to read the underlying GoLang code on Read() to see what assumptions it makes to the system calls. thanks, Ron On Friday, December 27, 2019 at 5:11:42 PM UTC-7, Ron Wahler wrote: > > I am looki

[go-nuts] Re: net.conn TCP connection

2019-12-31 Thread Ron Wahler
great. cheers, Ron On Friday, December 27, 2019 at 5:11:42 PM UTC-7, Ron Wahler wrote: > > I am looking for a net.conn standard read that would return a data buffer > the exact size of the read. I am trying to read an unknown amount of byte > data from the connection. With the rea

[go-nuts] Re: net.conn TCP connection

2019-12-29 Thread Ron Wahler
d. buf, read_err := ioutil.ReadAll(Csrc) thanks, Ron On Friday, December 27, 2019 at 5:11:42 PM UTC-7, Ron Wahler wrote: > > I am looking for a net.conn standard read that would return a data buffer > the exact size of the read. I am trying to read an unknown amount of byte > da

[go-nuts] Re: net.conn TCP connection

2019-12-27 Thread Ron Wahler
I did look at ReadAll, but it won't return until it sees EOF. I am trying to find something that would return when the standard read would return. I get the memory part and would manage that. Any other ideas ? thanks, Ron On Friday, December 27, 2019 at 5:11:42 PM UTC-7, Ron Wahler

[go-nuts] net.conn TCP connection

2019-12-27 Thread ron . wahler
I am looking for a net.conn standard read that would return a data buffer the exact size of the read. I am trying to read an unknown amount of byte data from the connection. With the read i am using I am required to pre-allocate a buffer and pass that buffer to the read. I am looking for a read