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: TempTower BSDInterfaceTests HelloBSDInterface ESP8266InterfaceTests ... more
Diff: SocketInterface.h
- Revision:
- 58:1caa187fa5af
- Parent:
- 57:3c873fab4207
- Child:
- 63:531f4c27f360
--- a/SocketInterface.h Thu Feb 25 19:00:39 2016 -0600 +++ b/SocketInterface.h Thu Feb 25 21:20:25 2016 -0600 @@ -38,24 +38,6 @@ public: virtual ~SocketInterface() {} - /** Set the IP address of the socket - * @param ip IP address to connect to - */ - virtual void setIPAddress(const char *ip) { (void)ip; } - - /** Set the port of the socket - * @param port Port to connect to - */ - virtual void setPort(uint16_t port) { (void)port; } - - /** Status of the socket - * @return True if connected - */ - virtual bool isConnected() - { - // By default return true if socket was created successfully - return true; - } /** Open a connection to the underlying address * @param ip IP address to connect to @@ -86,6 +68,16 @@ * @return Number of bytes received or a negative value on failure */ virtual int32_t recv(void *data, uint32_t size) = 0; + + + /** Status of the socket + * @return True if connected + */ + virtual bool isConnected() + { + // By default return true if socket was created successfully + return true; + } }; #endif