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.
Diff: NetworkInterface.h
- Revision:
- 5:b66a6984ed2d
- Parent:
- 4:bbe51641f405
- Child:
- 6:0914f9b9b24b
--- a/NetworkInterface.h Tue Apr 05 09:07:28 2016 -0500
+++ b/NetworkInterface.h Tue Apr 05 09:16:47 2016 -0500
@@ -17,6 +17,30 @@
#ifndef NETWORK_INTERFACE_H
#define NETWORK_INTERFACE_H
+/**
+ * @enum ns_error_t
+ * @brief enum of standardized error codes
+ */
+enum ns_error_t {
+ NSAPI_ERROR_WOULD_BLOCK = -3001, /*!< no data is not available but call is non-blocking */
+ NSAPI_ERROR_UNSUPPORTED = -3002, /*!< unsupported configuration */
+ NSAPI_ERROR_NO_CONNECTION = -3003, /*!< not connected to a network */
+ NSAPI_ERROR_NO_SOCKET = -3004, /*!< socket not available for use */
+ NSAPI_ERROR_NO_ADDRESS = -3005, /*!< IP address is not known */
+ NSAPI_ERROR_NO_MEMORY = -3006, /*!< memory resource not available */
+ NSAPI_ERROR_DNS_FAILURE = -3007, /*!< DNS failed to complete successfully */
+ NSAPI_ERROR_DHCP_FAILURE = -3008, /*!< DHCP failed to complete successfully */
+ NSAPI_ERROR_AUTH_FAILURE = -3009, /*!< connection to access point faield */
+ NSAPI_ERROR_DEVICE_ERROR = -3010, /*!< failure interfacing with the network procesor */
+};
+
+/**
+ * @enum ns_opt_t
+ * @brief enum of available options
+ */
+enum ns_opt_t {
+};
+
/** NetworkInterface class
* Common interface that is shared between all hardware that
* can connect to a network over IP.