Rev 4578 | Rev 4704 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 4578 | mejdrech | 1 | /* |
| 2 | * Copyright (c) 2009 Lukas Mejdrech |
||
| 3 | * All rights reserved. |
||
| 4 | * |
||
| 5 | * Redistribution and use in source and binary forms, with or without |
||
| 6 | * modification, are permitted provided that the following conditions |
||
| 7 | * are met: |
||
| 8 | * |
||
| 9 | * - Redistributions of source code must retain the above copyright |
||
| 10 | * notice, this list of conditions and the following disclaimer. |
||
| 11 | * - Redistributions in binary form must reproduce the above copyright |
||
| 12 | * notice, this list of conditions and the following disclaimer in the |
||
| 13 | * documentation and/or other materials provided with the distribution. |
||
| 14 | * - The name of the author may not be used to endorse or promote products |
||
| 15 | * derived from this software without specific prior written permission. |
||
| 16 | * |
||
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
||
| 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
||
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||
| 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
||
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
||
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
||
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
| 27 | */ |
||
| 28 | |||
| 29 | /** @addtogroup net |
||
| 30 | * @{ |
||
| 31 | */ |
||
| 32 | |||
| 33 | /** @file |
||
| 34 | * Socket error codes. |
||
| 35 | * Based on BSD. |
||
| 36 | */ |
||
| 37 | |||
| 38 | #ifndef __NET_SOCKET_ERR_H__ |
||
| 39 | #define __NET_SOCKET_ERR_H__ |
||
| 40 | |||
| 41 | #include <errno.h> |
||
| 42 | |||
| 43 | ////#define EINTR (-10004) |
||
| 44 | ////#define EBADF (-10009) |
||
| 45 | //#define EACCES (-10013) |
||
| 46 | //#define EFAULT (-10014) |
||
| 47 | ////#define EINVAL (-10022) |
||
| 48 | ////#define EMFILE (-10024) |
||
| 49 | //#define EWOULDBLOCK (-10035) |
||
| 50 | /** If any API function is called while a blocking function is in progress. |
||
| 51 | */ |
||
| 52 | //#define EINPROGRESS (-10036) |
||
| 53 | //#define EALREADY (-10037) |
||
| 54 | #define ENOTSOCK (-10038) |
||
| 55 | //#define EDESTADDRREQ (-10039) |
||
| 56 | //#define EMSGSIZE (-10040) |
||
| 57 | //#define EPROTOTYPE (-10041) |
||
| 58 | //#define ENOPROTOOPT (-10042) |
||
| 59 | #define EPROTONOSUPPORT (-10043) |
||
| 60 | #define ESOCKTNOSUPPORT (-10044) |
||
| 61 | //#define EOPNOTSUPP (-10045) |
||
| 62 | #define EPFNOSUPPORT (-10046) |
||
| 63 | #define EAFNOSUPPORT (-10047) |
||
| 64 | #define EADDRINUSE (-10048) |
||
| 65 | //#define EADDRNOTAVAIL (-10049) |
||
| 66 | /** May be reported at any time if the implementation detects an underlying failure. |
||
| 67 | */ |
||
| 68 | //#define ENETDOWN (-10050) |
||
| 69 | //#define ENETUNREACH (-10051) |
||
| 70 | //#define ENETRESET (-10052) |
||
| 71 | //#define ECONNABORTED (-10053) |
||
| 72 | //#define ECONNRESET (-10054) |
||
| 73 | //#define ENOBUFS (-10055) |
||
| 74 | //#define EISCONN (-10056) |
||
| 4700 | mejdrech | 75 | #define ENOTCONN (-10057) |
| 4578 | mejdrech | 76 | //#define ESHUTDOWN (-10058) |
| 77 | //#define ETOOMANYREFS (-10059) |
||
| 78 | //#define ETIMEDOUT (-10060) |
||
| 79 | //#define ECONNREFUSED (-10061) |
||
| 80 | //#define ELOOP (-10062) |
||
| 81 | ////#define ENAMETOOLONG (-10063) |
||
| 82 | //#define EHOSTDOWN (-10064) |
||
| 83 | //#define EHOSTUNREACH (-10065) |
||
| 84 | //#define HOST_NOT_FOUND (-11001) |
||
| 85 | //#define TRY_AGAIN (-11002) |
||
| 86 | //#define NO_RECOVERY (-11003) |
||
| 87 | #define NO_DATA (-11004) |
||
| 88 | |||
| 89 | #endif |
||
| 90 | |||
| 91 | /** @} |
||
| 92 | */ |