Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: NetworkInterface.h
- Branch:
- api-changes
- Revision:
- 45:c8aca7c1e93f
- Parent:
- 43:09ea32f2eb54
- Child:
- 46:ac37605ca91d
diff -r aef3f416e4b0 -r c8aca7c1e93f NetworkInterface.h
--- 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
