q_rx_ready returns pre-existings connection
pfeatherstone opened this issue · 4 comments
pfeatherstone commented
Calling q_rx_ready sometimes returns a pre-existing connection
larseggert commented
What do you mean by "pre-existing"? q_rx_ready()
returns a list of connections that have at least one stream that has unread data in it.
pfeatherstone commented
q_rx_ready returns a connection that has already been accepted.
Is q_rx_ready meant to be used like poll or select for sockets? From investigating server.c it looked liked it was being used as a substitute for q_accept?
…Sent from my iPhone
On 2 Jan 2019, at 09:50, Lars Eggert ***@***.***> wrote:
What do you mean by "pre-existing"? q_rx_ready() returns a list of connections that have at least one stream that has unread data in it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
larseggert commented
It's meant to be similar to poll()
or select()
, yes. Sorry for the lack of documentation on the API - it's been changing, and so I didn't spend time on it yet. Also, it will likely continue to change.
pfeatherstone commented
Ok thank you. That clarifies it.
…Sent from my iPhone
On 2 Jan 2019, at 13:47, Lars Eggert ***@***.***> wrote:
It's meant to be similar to poll() or select(), yes. Sorry for the lack of documentation on the API - it's been changing, and so I didn't spent time on it yet. Also, it will likely continue to change.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.