Mercurial > flash_v2
comparison packages/redboot/current/include/net/http.h @ 898:6f9085944169
Improve download error handling. Also display more info during load.
| author | gthomas |
|---|---|
| date | Thu, 03 Apr 2003 15:21:10 +0000 |
| parents | e1b642d73533 |
| children |
comparison
equal
deleted
inserted
replaced
| 897:07ad44cfd9a4 | 898:6f9085944169 |
|---|---|
| 7 //========================================================================== | 7 //========================================================================== |
| 8 //####ECOSGPLCOPYRIGHTBEGIN#### | 8 //####ECOSGPLCOPYRIGHTBEGIN#### |
| 9 // ------------------------------------------- | 9 // ------------------------------------------- |
| 10 // This file is part of eCos, the Embedded Configurable Operating System. | 10 // This file is part of eCos, the Embedded Configurable Operating System. |
| 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. | 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
| 12 // Copyright (C) 2002 Gary Thomas | 12 // Copyright (C) 2002, 2003 Gary Thomas |
| 13 // | 13 // |
| 14 // eCos is free software; you can redistribute it and/or modify it under | 14 // eCos is free software; you can redistribute it and/or modify it under |
| 15 // the terms of the GNU General Public License as published by the Free | 15 // the terms of the GNU General Public License as published by the Free |
| 16 // Software Foundation; either version 2 or (at your option) any later version. | 16 // Software Foundation; either version 2 or (at your option) any later version. |
| 17 // | 17 // |
| 63 | 63 |
| 64 #define HTTP_NOERR 0 // No error | 64 #define HTTP_NOERR 0 // No error |
| 65 #define HTTP_BADHDR 1 // Invalid HTTP header (response) | 65 #define HTTP_BADHDR 1 // Invalid HTTP header (response) |
| 66 #define HTTP_OPEN 2 // Problems opening connection | 66 #define HTTP_OPEN 2 // Problems opening connection |
| 67 #define HTTP_IO 3 // Misc I/O problems | 67 #define HTTP_IO 3 // Misc I/O problems |
| 68 #define HTTP_BADREQ 4 // Bad request | |
| 69 #define HTTP_NOFILE 5 // No such file | |
| 68 | 70 |
| 69 extern getc_io_funcs_t http_io; | 71 extern getc_io_funcs_t http_io; |
| 70 #endif // _HTTP_H_ | 72 #endif // _HTTP_H_ |
