How to get the size here? #2758
Replies: 3 comments 9 replies
-
Im guessing this is the recipe. |
Beta Was this translation helpful? Give feedback.
-
First, use coroutines for healthier life. Second, I don't understand the question. read() doesn't return extra data. |
Beta Was this translation helpful? Give feedback.
-
As Avi said, read() does not read any extra characters beyond what was actually sent on the socket. If you had printed the actual characters in the buffer instead of those pointers (?) you would have seen what those extra characters are. I suggest to close this issue (?) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In this example we are reading the buffer which could have extranious data and sending it back out.
For example if I type
1234
The data may arrive server side like this:
buf size 6
0x600000003c40
0x600000004280
0x6000000048e0
0x600000004f60
0x600000005100
Two simple questions:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions