Re: Reading bytes from a TCP port

2019-11-28 Thread Fredrik Appelberg
ko...@upyum.com writes: > Fredrik Appelberg wrote: >> >> Hello all, new chicken schemer here. >> >> I'm writing an AMPQ client for fun (as One does) and can't figure out >> the correct way to read from a TCP port. I want to block until input is >> available, and then read all buffered data

Re: Reading bytes from a TCP port

2019-11-28 Thread kooda
Fredrik Appelberg wrote: > > Hello all, new chicken schemer here. > > I'm writing an AMPQ client for fun (as One does) and can't figure out > the correct way to read from a TCP port. I want to block until input is > available, and then read all buffered data into a byte buffer (I'm using >

Reading bytes from a TCP port

2019-11-27 Thread Fredrik Appelberg
Hello all, new chicken schemer here. I'm writing an AMPQ client for fun (as One does) and can't figure out the correct way to read from a TCP port. I want to block until input is available, and then read all buffered data into a byte buffer (I'm using bitstring, but it can be anything really).