Changeset 69d48f0fc8085ee53db9c9060b22ef7c461f9d47
- Timestamp:
- 19/11/07 19:28:24
(11 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1195496904 +0000
- git-parent:
[60dcd8b930e5cda9831db78cd7a112235430de1c]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1195496904 +0000
- Message:
Comment on the EOF case - this does not change the semantic at all.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd10cd70 |
r69d48f0 |
|
| 334 | 334 | } |
|---|
| 335 | 335 | |
|---|
| | 336 | if (n == 0) |
|---|
| | 337 | /* For streams, this means end of file, and there will not be any |
|---|
| | 338 | * further data ever on the stream. For datagram sockets, this |
|---|
| | 339 | * means empty datagram, and there could be more data coming. |
|---|
| | 340 | * However, it makes no sense to set <waitall> with datagrams. |
|---|
| | 341 | */ |
|---|
| | 342 | break; // EOF |
|---|
| | 343 | |
|---|
| 336 | 344 | if (n == -1) |
|---|
| 337 | 345 | { |
|---|
| … | … | |
| 368 | 376 | i_buflen -= n; |
|---|
| 369 | 377 | |
|---|
| 370 | | if ((n == 0) || !waitall) |
|---|
| | 378 | if (!waitall) |
|---|
| 371 | 379 | break; |
|---|
| 372 | 380 | } |
|---|