If I do s.recv(6) does that receive the first 6 bytes of data? I am looking at the documentation, and getting confused.
Asked
Active
Viewed 94 times
0
-
2Can you be any more explicit about what's confusing you? – David Z Sep 18 '17 at 19:01
-
I guess I just want to know if doing recv(6) receives the first 6 bytes of data or not lol – Itachi San Sep 18 '17 at 19:14
-
https://stackoverflow.com/questions/7174927/when-does-socket-recvrecv-size-return – Peter Wood Sep 18 '17 at 19:30
-
1@ItachiSan I guess I'm just having a hard time understanding why you couldn't tell that from the documentation, or what reason you have to think it might do anything other than receiving the first 6 bytes of data. – David Z Sep 18 '17 at 20:21
1 Answers
1
bufsize
value in recv
sets maximum amount of data received. So - yes, you will receive first 6 bytes or less (it depends of actual length of data).
Additional information here and here

Roman Mindlin
- 852
- 1
- 8
- 12