Core networking libraries including LwIP implementation
Dependencies: DebugLib Socket lwip lwip-sys
Fork of NetworkingCoreLib by
main/core/errors.h@15:cf5f669a30bc, 2012-06-22 (annotated)
- Committer:
- donatien
- Date:
- Fri Jun 22 16:18:09 2012 +0000
- Revision:
- 15:cf5f669a30bc
- Parent:
- 13:f7d8c8088289
DebugLib up
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
donatien | 0:013f5d54248c | 1 | /* errors.h */ |
donatien | 13:f7d8c8088289 | 2 | /* Copyright (C) 2012 mbed.org, MIT License |
donatien | 13:f7d8c8088289 | 3 | * |
donatien | 13:f7d8c8088289 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
donatien | 13:f7d8c8088289 | 5 | * and associated documentation files (the "Software"), to deal in the Software without restriction, |
donatien | 13:f7d8c8088289 | 6 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
donatien | 13:f7d8c8088289 | 7 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
donatien | 13:f7d8c8088289 | 8 | * furnished to do so, subject to the following conditions: |
donatien | 13:f7d8c8088289 | 9 | * |
donatien | 13:f7d8c8088289 | 10 | * The above copyright notice and this permission notice shall be included in all copies or |
donatien | 13:f7d8c8088289 | 11 | * substantial portions of the Software. |
donatien | 13:f7d8c8088289 | 12 | * |
donatien | 13:f7d8c8088289 | 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
donatien | 13:f7d8c8088289 | 14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
donatien | 13:f7d8c8088289 | 15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
donatien | 13:f7d8c8088289 | 16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
donatien | 13:f7d8c8088289 | 17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
donatien | 13:f7d8c8088289 | 18 | */ |
donatien | 13:f7d8c8088289 | 19 | |
donatien | 0:013f5d54248c | 20 | #ifndef ERRORS_H_ |
donatien | 0:013f5d54248c | 21 | #define ERRORS_H_ |
donatien | 0:013f5d54248c | 22 | |
donatien | 0:013f5d54248c | 23 | /** \page Network-related errors */ |
donatien | 0:013f5d54248c | 24 | |
donatien | 0:013f5d54248c | 25 | #define OK 0 //No error |
donatien | 0:013f5d54248c | 26 | |
donatien | 0:013f5d54248c | 27 | #define NET_FULL 1 //>All available resources are already used |
donatien | 0:013f5d54248c | 28 | #define NET_EMPTY 2 //>No resource |
donatien | 0:013f5d54248c | 29 | #define NET_NOTFOUND 3 //>Element cannot be found |
donatien | 0:013f5d54248c | 30 | #define NET_INVALID 4 //>Invalid |
donatien | 0:013f5d54248c | 31 | #define NET_CONTEXT 5 //>Called in a wrong context (eg during an interrupt) |
donatien | 0:013f5d54248c | 32 | #define NET_TIMEOUT 6 //>Timeout |
donatien | 0:013f5d54248c | 33 | #define NET_UNKNOWN 7 //>Unknown error |
donatien | 0:013f5d54248c | 34 | #define NET_OVERFLOW 8 //>Overflow |
donatien | 0:013f5d54248c | 35 | #define NET_PROCESSING 9 //>Command is processing |
donatien | 0:013f5d54248c | 36 | #define NET_INTERRUPTED 10 //>Current operation has been interrupted |
donatien | 0:013f5d54248c | 37 | #define NET_MOREINFO 11 //>More info on this error can be retrieved elsewhere (eg in a parameter passed as ptr) |
donatien | 0:013f5d54248c | 38 | #define NET_ABORT 12 //>Current operation must be aborted |
donatien | 0:013f5d54248c | 39 | #define NET_DIFF 13 //>Items that should match are different |
donatien | 0:013f5d54248c | 40 | #define NET_AUTH 14 //>Authentication failed |
donatien | 0:013f5d54248c | 41 | #define NET_PROTOCOL 15 //>Protocol error |
donatien | 0:013f5d54248c | 42 | #define NET_OOM 16 //>Out of memory |
donatien | 0:013f5d54248c | 43 | #define NET_CONN 17 //>Connection error |
donatien | 0:013f5d54248c | 44 | #define NET_CLOSED 18 //>Connection was closed by remote end |
donatien | 0:013f5d54248c | 45 | #define NET_TOOSMALL 19 //>Buffer is too small |
donatien | 0:013f5d54248c | 46 | |
donatien | 0:013f5d54248c | 47 | #endif /* ERRORS_H_ */ |