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: SocketInterface.h
- Branch:
- api-changes
- Revision:
- 28:163fbe3263f4
- Parent:
- 27:d7ed39727306
- Child:
- 31:7f15b95f2a1d
diff -r d7ed39727306 -r 163fbe3263f4 SocketInterface.h
--- a/SocketInterface.h Thu Feb 18 09:20:39 2016 -0600
+++ b/SocketInterface.h Thu Feb 18 13:19:47 2016 -0600
@@ -53,17 +53,6 @@
*/
virtual void setPort(uint16_t port);
- /** Get the IP address
- * @return IP address to connect to
- */
- virtual const char *getIPAddress();
-
- /** Get the port
- * @return Port to connect to
- */
- virtual uint16_t getPort();
-
-
/** Open a connection to the underlying address
* Only used for TCP sockets
* @return 0 on success
@@ -91,14 +80,6 @@
* @return Number of bytes sent or a negative value on failure
*/
virtual int32_t recv(void *data, uint32_t len, uint32_t timeout_ms) = 0;
-
-protected:
- SocketInterface();
- virtual ~SocketInterface();
-
-private:
- char *_ip_address;
- uint16_t _port;
};
#endif
