NetworkSocketAPI
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: NetworkInterface.h
- Branch:
- api-changes
- Revision:
- 45:c8aca7c1e93f
- Parent:
- 43:09ea32f2eb54
- Child:
- 46:ac37605ca91d
--- a/NetworkInterface.h Wed Feb 24 22:18:51 2016 -0600 +++ b/NetworkInterface.h Wed Feb 24 23:05:54 2016 -0600 @@ -26,6 +26,19 @@ #define NS_IP_SIZE 16 #define NS_MAC_SIZE 18 +/** Inexhaustive enum of standardized error codes + */ +enum ns_error_t { + NS_ERROR_TIMEOUT = -3001, + NS_ERROR_NO_CONNECTION = -3002, + NS_ERROR_NO_SOCKET = -3003, + NS_ERROR_NO_ADDRESS = -3004, + NS_ERROR_NO_MEMORY = -3005, + NS_ERROR_DNS_FAILURE = -3006, + NS_ERROR_DHCP_FAILURE = -3007, + NS_ERROR_CRED_FAILURE = -3008 +}; + /** NetworkInterface class * Common interface that is shared between all hardware that