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
- Revision:
- 96:656011e49d9f
- Parent:
- 95:b3c679f20d13
- Child:
- 99:f51358e506c1
--- a/NetworkInterface.h Tue Apr 19 18:24:24 2016 -0500
+++ b/NetworkInterface.h Tue Apr 19 18:24:34 2016 -0500
@@ -22,7 +22,7 @@
/** Enum of standardized error codes
- * @enum ns_error_t
+ * @enum nsapi_error_t
*/
enum nsapi_error_t {
NSAPI_ERROR_WOULD_BLOCK = -3001, /*!< no data is not available but call is non-blocking */
@@ -38,9 +38,9 @@
};
/** Enum of available options
- * @enum ns_opt_t
+ * @enum nsapi_opt_t
*/
-enum ns_opt_t {
+enum nsapi_opt_t {
};
/** Enum of socket protocols
@@ -134,10 +134,10 @@
/** Bind a server socket to a specific port
* @param handle Socket handle
- * @param port The port to listen for incoming connections on
+ * @param address Local address to listen for incoming connections on
* @return 0 on success, negative on failure.
*/
- virtual int socket_bind(void *handle, int port) = 0;
+ virtual int socket_bind(void *handle, const SocketAddress &address) = 0;
/** Start listening for incoming connections
* @param handle Socket handle
