Mercurial > ecos
comparison packages/redboot/current/src/net/tcp.c @ 143:6b5f480c6929 ecos-sw-2000-12-08
Merge from eCos master repository on 2000-12-08-02:09:36-GMT
| author | jlarmour |
|---|---|
| date | Fri, 08 Dec 2000 03:30:06 +0000 |
| parents | 6ed91473a1cd |
| children | 52c99470ec11 |
comparison
equal
deleted
inserted
replaced
| 142:12eccf9656f3 | 143:6b5f480c6929 |
|---|---|
| 609 * Block while waiting for all data to be transmitted. | 609 * Block while waiting for all data to be transmitted. |
| 610 */ | 610 */ |
| 611 void | 611 void |
| 612 __tcp_drain(tcp_socket_t *s) | 612 __tcp_drain(tcp_socket_t *s) |
| 613 { | 613 { |
| 614 BSPLOG(bsp_log("__tcp_drain.\n")); | 614 // BSPLOG(bsp_log("__tcp_drain.\n")); |
| 615 while (s->state != _CLOSED && s->data_bytes) | 615 while (s->state != _CLOSED && s->data_bytes) |
| 616 __tcp_poll(); | 616 __tcp_poll(); |
| 617 BSPLOG(bsp_log("__tcp_drain done.\n")); | 617 // BSPLOG(bsp_log("__tcp_drain done.\n")); |
| 618 } | 618 } |
| 619 | 619 |
| 620 | 620 |
| 621 | 621 |
| 622 /* | 622 /* |
