You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I use telnet.DialTo to get a conn.I use this conn to Read bytes using the function conn.Read().However,it is blocked.How can I solve this problem,thank you! Idon't know how many bytes i will receive.ButI want to receive all of them
The text was updated successfully, but these errors were encountered:
I did some testing on this problem. I was using an expect library on top of the telnet connection. The issue I saw was that the reiver telnet connection would block forever until all bytes are available.
I tested ziutek's library by making a simple telnet server that just sends a simple message when clients connect, and could see on Read() with zuitek any unavailable bytes will be set to 0 (eager read), while the reiver connection will block.
Now I use telnet.DialTo to get a conn.I use this conn to Read bytes using the function conn.Read().However,it is blocked.How can I solve this problem,thank you! Idon't know how many bytes i will receive.ButI want to receive all of them
The text was updated successfully, but these errors were encountered: